DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   Shell Scripting (http://www.daniweb.com/forums/forum113.html)
-   -   Script to identify current users on the system (http://www.daniweb.com/forums/thread201521.html)

ViLeNT Jul 3rd, 2009 2:01 pm
Script to identify current users on the system
 
I'd like to write a script to identify current users on the sytem with an indication of the actions they are performing. I only want to identify the users. Can someone please help?

fayola Jul 3rd, 2009 2:19 pm
Re: Script to identify current users on the system
 
need more info.... is this a windows system, unix, web app?

ermithun Jul 6th, 2009 1:41 am
Re: Script to identify current users on the system
 
Quote:

Originally Posted by ViLeNT (Post 907678)
I'd like to write a script to identify current users on the sytem with an indication of the actions they are performing. I only want to identify the users. Can someone please help?


The command 'who -ap' will list all the users currently logged in the system.

for more info on who, pls do type 'man who' on ur terminal.

now as per ur requirement, u can write a script mentioning the cmd inside and accordingly cut the output depending on ur requirement.


All times are GMT -4. The time now is 2:50 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC