[Scottish] fetchmail
Martin McCarthy
scottish at mailman.lug.org.uk
Fri Sep 5 00:41:00 2003
> if I type "fetchmail -a" manually, it works but the entry in the crontab
> doesnt work.
> The crontab entry looks like
>
> 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28
> ,29,
> 30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,5
> 5,56
> ,57,58,59 * * * * allan "/usr/bin/fetchmail -a"
Which user has that in their crontab? Is it root? What does the
"allan" command do on your machine? I suspect that that is the part
that isn't working.
Have you tried an entry in allan's crontab that reads:
* * * * * /usr/bin/fetchmail -a
> how do I run fetchmail once on startup as a certain user?
you could put a line or two in, for example (although this might vary by
what distribution you are using) /etc/rc.local that reads something
like:
su -c "your fetchmail command here" allan
su -c "your fetchmail command here" otheruser
> One last thing which I am particularly proud of is that I now have
> ipv6 connectivity on my machines now :o) pointless I know but it was
> worth the challenge.
Congratulations! It's the way of the future :-)
Hope that's at least some vague help.
Martin
--
Martin McCarthy /</ http://www.non-prophet.org
marty@ancient-scotland.co.uk \>\ http://www.ancient-scotland.co.uk
/</ http://www.ehabitat.demon.co.uk