Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cron is not running my jobs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
HomerSimpson
l33t
l33t


Joined: 25 Jan 2003
Posts: 869
Location: Ohio, USA

PostPosted: Sat Feb 08, 2003 8:27 pm    Post subject: Cron is not running my jobs Reply with quote

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
View user's profile Send private message
petu
Apprentice
Apprentice


Joined: 01 Sep 2002
Posts: 269
Location: Turku, Finland

PostPosted: Sat Feb 08, 2003 8:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
drakonite
l33t
l33t


Joined: 02 Nov 2002
Posts: 768
Location: Lincoln, NE

PostPosted: Sat Feb 08, 2003 10:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
HomerSimpson
l33t
l33t


Joined: 25 Jan 2003
Posts: 869
Location: Ohio, USA

PostPosted: Sat Feb 08, 2003 11:23 pm    Post subject: Reply with quote

cron is running. I see it when I run

Code:

ps -ef | grep cron


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
View user's profile Send private message
HomerSimpson
l33t
l33t


Joined: 25 Jan 2003
Posts: 869
Location: Ohio, USA

PostPosted: Sun Feb 09, 2003 1:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Seneka
Tux's lil' helper
Tux's lil' helper


Joined: 16 Oct 2002
Posts: 83

PostPosted: Mon Feb 10, 2003 12:53 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum