Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fetchmail and Dcron
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
equilian
n00b
n00b


Joined: 27 Apr 2002
Posts: 41
Location: Cambridge,MA

PostPosted: Tue Aug 06, 2002 3:28 pm    Post subject: Fetchmail and Dcron Reply with quote

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


Joined: 30 Apr 2002
Posts: 918
Location: Phoenix, AZ

PostPosted: Tue Aug 06, 2002 5:26 pm    Post subject: Reply with quote

Maybe put " " around the full command?
Back to top
View user's profile Send private message
equilian
n00b
n00b


Joined: 27 Apr 2002
Posts: 41
Location: Cambridge,MA

PostPosted: Wed Aug 07, 2002 1:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Naan Yaar
Bodhisattva
Bodhisattva


Joined: 27 Jun 2002
Posts: 1549

PostPosted: Wed Aug 07, 2002 2:48 am    Post subject: Reply with quote

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


Joined: 27 Apr 2002
Posts: 41
Location: Cambridge,MA

PostPosted: Thu Aug 08, 2002 6:22 am    Post subject: Reply with quote

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


Joined: 27 Apr 2002
Posts: 41
Location: Cambridge,MA

PostPosted: Thu Aug 08, 2002 6:29 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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