ps ax will show all the processes running in your system. Redirect its output to a file when a user logs in. add this command in /etc/profile script ps ax > /tmp/processes.txt Regards, Krishnaprasad -----Original Message----- From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of chockalingam Sent: Thursday, May 10, 2007 12:29 PM To: General Red Hat Linux discussion list Subject: Re: Root shell with logging Hi All, I am looking for the solution of logging all the fg and bg processes when some user logs in. I need this log to be forwarded to a file, for later analysis. Please help.... Regards, Chockalingam.S -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list