[ale] Script at Login Question
James P. Kinney III
jkinney at localnetsolutions.com
Tue Mar 23 14:29:49 EST 2004
On Tue, 2004-03-23 at 14:14, Jonathan Glass wrote:
> The issue then is filenames. i guess you'd have to create a filename
> with some randomness, or a date-time element to it. Otherwise, the logs
> would keep overwriting one another, right?
Nope. Set the write to be an append.
eg:
echo $foo >> $log
will add $foo to the end of $log
>
> Jonathan
>
> On Tue, 2004-03-23 at 14:04, Yu, Jerry wrote:
> > hate to clarify myself after 1 second. By 'script call' I meant the 'script'
> > command which logs a shell session.
> >
> > -----Original Message-----
> > From: Yu, Jerry [mailto:Jerry.Yu at voicecom.com]
> > Sent: Tuesday, March 23, 2004 2:02 PM
> > To: 'Atlanta Linux Enthusiasts'
> > Subject: RE: [ale] Script at Login Question
> >
> >
> > would a script call from .bash_profile or .bashrc work? Of course, make sure
> > they can't be modified by the user and no other shells is available and no
> > way to invoke a shell without sourcing your .bash_profile/.bashrc.
> >
> > -----Original Message-----
> > From: Jonathan Glass [mailto:jonathan.glass at ibb.gatech.edu]
> > Sent: Tuesday, March 23, 2004 1:59 PM
> > To: ale at ale.org
> > Subject: [ale] Script at Login Question
> >
> >
> > I'm just thinking out loud again. Anyone configured script to run
> > whenever someone logs in? I'm thinking it would be very beneficial to
> > log user sessions on a few choice machines. Is there a better way to do
> > this? Again, just thinking out loud. I haven't hit Google yet, so
> > pardon my ignorance.
> >
> > Thanks!
--
James P. Kinney III \Changing the mobile computing world/
CEO & Director of Engineering \ one Linux user /
Local Net Solutions,LLC \ at a time. /
770-493-8244 \.___________________________./
http://www.localnetsolutions.com
GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney at localnetsolutions.com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
More information about the Ale
mailing list