Re: Running a script from /etc/ip-up.d
> #! /bin/sh
> fetchmail -f /home/cdysthe/.fetchmailrc
> However, if I put it in /etc/ip-up.d they do not work as intended: I can
> see the fetchamil process start as soon as I am connected, but fetchmail
> won't collect mail in this case. It just hangs there inactive.
In ip-up.d it is being run as root, not as cdysthe. Try
su -c fetchmail cdysthe
This will run the fetchmail command as 'cdysthe'.
--
John Hasler
john@dhh.gt.org (John Hasler)
Dancing Horse Hill
Elmwood, WI
Reply to: