View previous topic :: View next topic |
Author |
Message |
HomerSimpson l33t
Joined: 25 Jan 2003 Posts: 869 Location: Ohio, USA
|
Posted: Sat Feb 08, 2003 8:27 pm Post subject: Cron is not running my jobs |
|
|
I used webmin to create a cron job. I simply want it to run getmail every 10 minutes. Using webmin I created the job.
I now have a file in /var/spool/cron/crontabs/<username> that has the cron job in it as
0, 10, 20, 30, 40, 50 * * * * getmail
<username> is the name if the user I want to run getmail as.
Getmail is not running!
What can I do or check to see why my cron job is not running?
Thanks _________________ The strong must protect the Sweet. |
|
Back to top |
|
|
petu Apprentice
Joined: 01 Sep 2002 Posts: 269 Location: Turku, Finland
|
Posted: Sat Feb 08, 2003 8:36 pm Post subject: |
|
|
Try using path_to/getmail instead of plain getmail. By default all output from cronjobs is sent to user's mailbox so you could check the mail to see if there are any errors. |
|
Back to top |
|
|
drakonite l33t
Joined: 02 Nov 2002 Posts: 768 Location: Lincoln, NE
|
Posted: Sat Feb 08, 2003 10:28 pm Post subject: |
|
|
Are you sure cron is running?
....I forgot to add cron with rc-update the first time I installed gentoo and when I first started using cron I couldn't figure out why it didn't work... _________________ Shoot Pixels Not People
My GPG/PGP Public key |
|
Back to top |
|
|
HomerSimpson l33t
Joined: 25 Jan 2003 Posts: 869 Location: Ohio, USA
|
Posted: Sat Feb 08, 2003 11:23 pm Post subject: |
|
|
cron is running. I see it when I run
I am now specifying the path for getmail and it still does not work.
Ironically, I didn't realize cron used sendmail. I didn't see a need for me to run sendmail and I was getting sendmail errors during the time I was trying to get my scheduled task (getmail) running. So I got rid of sendmail. lol I didn't see the connection at the time.
Sendmail was saying unknown user snmp (or something like that).
I will re-emerge sendmail and see what cron is trying to tell me.
Thanks for your help. _________________ The strong must protect the Sweet. |
|
Back to top |
|
|
HomerSimpson l33t
Joined: 25 Jan 2003 Posts: 869 Location: Ohio, USA
|
Posted: Sun Feb 09, 2003 1:02 am Post subject: |
|
|
It is working now but I don't know why!
sendmail kept giving me errors and based on the comment above th cron emails you when it is having problems I tried to get sendmail working. I couldn't and gave up. I then emerged qmail and started it to see what cron was trying to tell me. It wasn't getting any mail but I am not really sure how I would tell anyways.
I am using courier as my pop3 server and it needed the maildirs to be .maildir. Unfortunately qmail needs maildir to be Maildir. So I cannot yet receive mail from cron to see what is going on.
Does anyone know how to configure qmail to look in .maildir or get courier to look in Maildir?
As I was reading on the web to try to figure out how to configure this cron started running getmail! I don't know why. It must have something to do with emerging qmail!?!?
Thanks _________________ The strong must protect the Sweet. |
|
Back to top |
|
|
Seneka Tux's lil' helper
Joined: 16 Oct 2002 Posts: 83
|
Posted: Mon Feb 10, 2003 12:53 am Post subject: |
|
|
if you mean by .maildir and Maildir some directories where mail is stored in maildir format, i'm sure you can configure yous mail agents to work with any directory... but it is easier to just create a symlink from .maildir to .Maildir (or the other way around).
s |
|
Back to top |
|
|
|