On Sun, Jun 24, 2001 at 09:17:11PM +0200, Mart van de Wege wrote: > Hmm, > > Sylpheed doesn't seem to want to include your original post in the reply, > so apologies if this is a little disjointed. > Since the /etc/pcmcia/network script starts as root, it would be a minor > change to just add a 'su fetchmail -c <start-fetchmail-command>' instead > of starting fetchmail as root outright? Does this return to a normal root > shell for the rest of the network script? AFAIK starting fetchmail is the > last thing I do in my pcmcia script, so it would not hurt either way, but > I'm just curious. > I *really* want fetchmail to run only when the pcmcia is plugged in, > otherwise it will overrun my syslog with whining about not finding > mailservers, and I have logcheck running, so those whines will clog up my > inbox (Thank $DEITY for filters).
Well, I don't think adding the 'su' command you mention would
change the shell's enviroment. I believe the shell would still be a
normal root shell for the remainder of it's activities. There's
probably a way to make certain fetchmail is started only when the
pcmcia is plugged in with a little bash or perl scripting I imagine,
but I don't use a laptop myself.
As an aside, you should only make your reply's to the debian-user
mailing list, not to a person's private e-mail address and the mailing
list.
Good Luck,
Jimmy Richards
> Mart
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
bindkNpwSEZHx.bin
Description: PGP Key 0x0062D7A7.
pgpIuxthaEgyV.pgp
Description: PGP signature

