Re: Starting "Script" when user logs on. | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Once upon a time I used ttysnoop: http://freshmeat.net/projects/ttysnoop/ On 08/03/2005 01:38:10 PM, Md Shanto wrote:
Hi all, I am trying to force "script" for logging all text I/O activities at the moment user logs in. Most of the users are running bash at this moment. Initially I tired with "ttyrec" a tty recorder and failed, as it says "Out of pty's - Terminated". Now, I tried something like below: ------------------ #!/bin/bash -l USER=`whoami` LOGTIME=`date +%Y-%m-%d-%H:%M:%S` /usr/bin/script -q /var/log/commlog/$USER-$LOGTIME ------------------ and assigning this script in /etc/passws. This script will log scripts with time stamp in /var/log/commlog/. what happen is: when user logs in the process becomes a loop and I see lot of script instances are running. Any idea. -Refayet -: send the line "unsubscribe linux- admin"in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
- : send the line "unsubscribe linux-admin" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
[Site Home] [Linux Newbie] [Audio] [Hams] [Kernel Newbies] [Memory] [Util Linux NG] [Security] [Netfilter] [Bugtraq] [Writing Drivers] [Photo] [Yosemite Photos] [Yosemite News] [MIPS Linux] [ARM Linux] [Linux Security] [Linux RAID] [Samba] [Video 4 Linux] [Git] [Linux Resources] [Fedora Users]
![]() |