View previous topic :: View next topic |
Author |
Message |
equilian n00b
Joined: 27 Apr 2002 Posts: 41 Location: Cambridge,MA
|
Posted: Tue Aug 06, 2002 3:28 pm Post subject: Fetchmail and Dcron |
|
|
Alright i've been trying to get fetchmail to run every other minute by adding the following line to my crontab file.
Code: |
1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35,37,39,41,43,45,47,49,51,53,55,57,59
* * * * /usr/bin/fetchmail -a -s > /dev/null 2&1
|
However, this isn't working. Could someone tell me what's going wrong here? And yes I am apart of the cron group. _________________ "To announce there must be no criticism of the president, or that we are
to stand by the president, right or wrong, is not only unpatriotic and servile,
but is morally treasonable to the American public."
-Theodore Roosevelt |
|
Back to top |
|
|
arkane l33t
Joined: 30 Apr 2002 Posts: 918 Location: Phoenix, AZ
|
Posted: Tue Aug 06, 2002 5:26 pm Post subject: |
|
|
Maybe put " " around the full command? |
|
Back to top |
|
|
equilian n00b
Joined: 27 Apr 2002 Posts: 41 Location: Cambridge,MA
|
Posted: Wed Aug 07, 2002 1:11 am Post subject: |
|
|
I tried that too. No Avail. _________________ "To announce there must be no criticism of the president, or that we are
to stand by the president, right or wrong, is not only unpatriotic and servile,
but is morally treasonable to the American public."
-Theodore Roosevelt |
|
Back to top |
|
|
Naan Yaar Bodhisattva
Joined: 27 Jun 2002 Posts: 1549
|
Posted: Wed Aug 07, 2002 2:48 am Post subject: |
|
|
Is it a user crontab or /etc/crontab? If it is /etc/crontab, it needs to have an additional field after the last '*' to indicate which user it needs to run as. Also, I assume that the line break is in the post and not in the real file? Did you add dcron to your default runlevel and start it? Lastly, I believe dcron needs a poke to re-read the crontab.
PS. you can use */2 in the first field to execute every two minutes rather than the verbose format. |
|
Back to top |
|
|
equilian n00b
Joined: 27 Apr 2002 Posts: 41 Location: Cambridge,MA
|
Posted: Thu Aug 08, 2002 6:22 am Post subject: |
|
|
So I changed my crontab file to read the following.
Code: |
MAILTO=""
*/2 * * * * /usr/bin/fetchmail -s
|
Now fetchmail runs when it should, however dcron is now email me the results of it's operations. Is there anyway to make this stop? _________________ "To announce there must be no criticism of the president, or that we are
to stand by the president, right or wrong, is not only unpatriotic and servile,
but is morally treasonable to the American public."
-Theodore Roosevelt |
|
Back to top |
|
|
equilian n00b
Joined: 27 Apr 2002 Posts: 41 Location: Cambridge,MA
|
Posted: Thu Aug 08, 2002 6:29 am Post subject: |
|
|
Hahah success is mine.
This code actually works as I want it to.
Code: |
#*/2 * * * * /usr/bin/fetchmail -s >> /dev/null 2>&1
|
Sweet Sweet Success. _________________ "To announce there must be no criticism of the president, or that we are
to stand by the president, right or wrong, is not only unpatriotic and servile,
but is morally treasonable to the American public."
-Theodore Roosevelt |
|
Back to top |
|
|
|
|
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
|
|