linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Starting "Script" when user logs on.
@ 2005-08-03 10:38 Md Shanto
  2005-08-03 12:48 ` urgrue
  2005-08-04 11:11 ` Glynn Clements
  0 siblings, 2 replies; 6+ messages in thread
From: Md Shanto @ 2005-08-03 10:38 UTC (permalink / raw)
  To: linux-admin

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-08-04 19:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-03 10:38 Starting "Script" when user logs on Md Shanto
2005-08-03 12:48 ` urgrue
2005-08-03 13:01   ` Andy Davidson
2005-08-03 17:20     ` Jason Clark
2005-08-04 19:06   ` GH Snijders
2005-08-04 11:11 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).