[Gllug] Shutdown Stopped

Dean Wilson dean.wilson3 at virgin.net
Sat Oct 19 14:36:03 UTC 2002


----- Original Message -----
From: "Jason Clifford" <jason at ukpost.com>


> > In python2.2 it is in the standard library os module, os.getlogin() as
> > opposed to os.geteuid(),I am sure there is something similar in perl
> > even if its written using cryptic symbols like $:-(

> perl -e 'print getlogin;'
Or $EUID and $UID in Bash.

I've tried passing these in to the command called from inittab but i've
think this is too late along to get the values i want. When the
Ctrl-alt-delete is kicked off it is handled by inittab which runs as root
and so when it passed the parameters to my command they are already set to
root or '/' which is the user init runs under. I was hoping to be able to
retrive them from $UID but its handeled by a process that really is root
(Doh! Should have realised that) so that fails.

  Dean
PS Good talk on setting up an ISP.
--
Profanity is the one language all programmers understand
--- Anon


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




More information about the GLLUG mailing list