help me out..LOG FILE

hello..m new to unix shell programmin..i hv 2 write a shell script 2 create a log file for my own purpose...it should record the commands invoked by the user along with the command,the time at which it was invoked,the script should run as a background process..if sm1 cn help me,plz rep soon..thnx..its urgent

try set -xv and also you could try searching the forum before posting. Check this thread.