Perl Prog as Root

"Browder, Tom" <[email protected]>
Newsgroups gmane.comp.lang.perl.tk
Message-ID <F4AAE2E381F0624BB8F513C1E9880FB904B8A9@newman.fwb.internal.srs.com>
I have written a small script that works when run as as a normal user on
Linux system.

It starts up and is put into the background during the login process and
is killed when the user logs out.  It monitors mounting external devices
and pops a modal window as a mount/unmount event happens.  I requires
the user to dismiss the window with a push button after it appears.  The
program works fine this way.  I execute it for a user by putting this
line as the last line in the /etc/csh.cshrc file:

  /etc/mybackgroundscript.pl &

I would like to run the process as a single one root by putting the
following as the last line in the /etc/rc.d/rc.local file:

  /etc/mybackgroundscript.pl &

I doesn't work apparently because the prog cannot get access to the X
server when it needs to pop up a window with another user logged in.

Does anyone have an idea?  Is the root/background/window method
workable?

Thanks.

Tom Browder

-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.