strong
06-03-2002, 02:01 PM
:) Hi, friends of Linux! :)
I need the following shell script but unfortunately I have no idea how to code it.
Your help is really appreciated.
You should call the script in the following way.
user [200][user.txt]
What shall the script do?
It shall show you the user who are logged on (I think the commands who or w are necessary.)
It shall also show you the number of processes each user has started at this moment.
Smith /6
Washington /2
Torvald /3
Gates /4
It would also be nice if the users are shown in a line.
Smith: 6, Washington: 2, Torvald: 3, Gates: 4
The script should run in the background.
Optional you can give a time in seconds when the data should be refreshed. The default should be 120 seconds. The data should be written in a text file like user.txt but the default file name is logon.txt
Every idea is welcome. If you have better ideas you can also modify my suggestions.
Please answer in this forum or send me a message.
:D :D S T R O N G :D :D
strong@cheerful.com
I need the following shell script but unfortunately I have no idea how to code it.
Your help is really appreciated.
You should call the script in the following way.
user [200][user.txt]
What shall the script do?
It shall show you the user who are logged on (I think the commands who or w are necessary.)
It shall also show you the number of processes each user has started at this moment.
Smith /6
Washington /2
Torvald /3
Gates /4
It would also be nice if the users are shown in a line.
Smith: 6, Washington: 2, Torvald: 3, Gates: 4
The script should run in the background.
Optional you can give a time in seconds when the data should be refreshed. The default should be 120 seconds. The data should be written in a text file like user.txt but the default file name is logon.txt
Every idea is welcome. If you have better ideas you can also modify my suggestions.
Please answer in this forum or send me a message.
:D :D S T R O N G :D :D
strong@cheerful.com