Capturing name of the user who is running a shell script

view full story

http://www.unix.com – Hello All, I am writing a shell script which will run on build server where multiple users can login.These users can run this script at the same time. I want to capture the name of the user who ran the script for every instance.How can I do that ? Regards, Anand Shah (HowTos)