LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Printing active users list (https://www.linuxquestions.org/questions/linux-newbie-8/printing-active-users-list-873584/)

Kalota 04-07-2011 09:17 AM

Printing active users list
 
We are using OES 10.00 and would like ot print list of all users in the container.

mayursingru 04-07-2011 09:27 AM

Hi Kalota,
I have no idea about what OES 10.00 is but if its Linux distro just check out "man who". This will most probablt solve your problem.


Regards,
Mayur Singru

vtel57 04-07-2011 09:36 AM

I'm not sure, but if you mean that as Admin you want a printout of all currently active users on the system, you use this command:

Code:

admin@OES~:# who > users.txt | lpr -P <printer name> users.txt
This will use the who command to create a file called users.txt which is then piped into the printer output. You'll need to remove the < and > and enter your printer's name in that place on the line.

Luck!

~Eric

Kalota 04-07-2011 10:00 AM

Thank you and let me try.

Kalota


All times are GMT -5. The time now is 05:03 PM.