From: Md Shanto <shanto76@gmail.com>
To: linux-newbie@vger.kernel.org
Subject: Starting "Script" when user logs on.
Date: Wed, 3 Aug 2005 16:34:52 +0600 [thread overview]
Message-ID: <b30595cd050803033433db70e9@mail.gmail.com> (raw)
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
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
next reply other threads:[~2005-08-03 10:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-03 10:34 Md Shanto [this message]
-- strict thread matches above, loose matches on Subject: below --
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b30595cd050803033433db70e9@mail.gmail.com \
--to=shanto76@gmail.com \
--cc=linux-newbie@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.