[Gllug] Stupid shell question

Emil Vaughan e.vaughan at btinternet.com
Tue Jun 18 21:40:30 UTC 2002


Easiest way I would have thought is to make a bash alias using the same name
as the command, so that you can run a shell script which writes to a log and
then runs the command. That can be trivially defeated of course, but so can
Tet's method by a determined person.

So the solution depends a great deal on what you are trying to acheive I
think.

Emil


----- Original Message -----
From: "Murray" <murray at minty.org>
To: <gllug at linux.co.uk>
Sent: Tuesday, June 18, 2002 6:28 PM
Subject: RE: [Gllug] Stupid shell question


ok, one from the equally stoopid answer brigade:

poll the history file for your user(s) every X minutes, dump the contents to
a file, stripping out known executables along the way - guess you would need
to be a little creative with the parsing there.

of course, also assumes the history is long enough and you poll frequently
enough.

now back to reinventing the wheel



-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list