![]() |
|
1
5th September 10:11
External User
Posts: 1
|
I'm a recent convert to Gentoo. I followed the console mail tools doc on
the Gentoo site. So I have mutt, nbsmtp, procmail, and fetchmail all setup and working individually. However, I've tried to setup a cron to fetch my mail, and can't seem to get it working. If I run my command from the prompt, it completes normally, fetches my mail, and all is well. But from the cron job, I never get any mail. The messages log shows that the cron job is running, with no obvious errors. Any ideas what I'm doing wrong? TIA, jdk -- gentoo-user@gentoo.org mailing list |
|
|
SPONSORED LINKS BY GOOGLE |
|
SPONSORED LINKS BY GOOGLE |
|
4
5th September 10:11
External User
Posts: 1
|
Is your cron job running as root, instead of as your regular user? - PK
-- gentoo-user@gentoo.org mailing list |
|
|
6
5th September 10:11
External User
Posts: 1
|
You run fetchmail -d xx where xx is the interval in seconds. Check man
fetchmail. I start mine in /etc/conf.d/local.start with sudo -H -u myname fetchmail -d 60. Or do rc-update add fetchmail default and it should start. -- Brett I. Holcomb -- gentoo-user@gentoo.org mailing list |
|
|
7
5th September 14:38
External User
Posts: 1
|
Double checked. Not running in daemon mode. That's what I'm specifically
avoiding running as a cron. jdk -- gentoo-user@gentoo.org mailing list |
|
|
8
5th September 14:38
External User
Posts: 1
|
I'd rather have it all running from my user cron. Is there a reason it
should not work that way. I looked at the log and find two entries each time it runs: Jun 25 05:52:00 starport CRON[28632]: (jdk) CMD (/usr/bin/fetchmail -aKF -f "/home/jdk/.fmfreeshell" -m "/usr/bin/procmail -d ) Jun 25 05:52:00 starport CRON[28631]: (jdk) MAIL (mailed 125 bytes of output but got status 0xffffffff ) I'm not sure what the second line is indicating. I do notice that the cron command shown above is incomplete. I don't know if that is just cutoff in the log or it's actually using the wrong command line. The command is actually: /usr/bin/fetchmail -aKF -f "/home/jdk/.fmfreeshell" -m "/usr/bin/procmail -d %T" As you can see, the %T" is cutoff the end. Am I on to something? TIA, jdk -- gentoo-user@gentoo.org mailing list |
|
|
9
5th September 19:07
External User
Posts: 1
|
Is it possible you are using an editor with cron that is hard wrapping
the long lines? I dunno if it'll help much but my fetchmail entries looks like this: 0-59/10 9-17 * * 1-5 /usr/bin/fetchmail --syslog -d0 -a -K -t 600 -m "/usr/bin/procmail -d %T" >/dev/null 2>&1 0-59/30 18-23,0-8 * * 1-5 /usr/bin/fetchmail --syslog -d0 -a -K -t 600 -m "/usr/bin/procmail -d %T" >/dev/null 2>&1 0-59/30 * * * 0,6 /usr/bin/fetchmail --syslog -d0 -a -K -t 600 -m "/usr/bin/procmail -d %T" >/dev/null 2>&1 -- Greg Donald http://destiney.com/ -- gentoo-user@gentoo.org mailing list |
|
|
|