Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Cron Problem, Cron Problem
chpant
post Aug 11 2004, 12:24 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 11-August 04
From: Ghaziabad, Uttar Pradesh, India
Member No.: 3,531



Hi All,

I'm having a problem setting up the cron. I want to run fetchmail every 5 minutes, so I've set the following cron command:

5 * * * * fetchmail -v -f '/home/username_here/.fetchmailrc'

But it's not working sad.gif .

If I run this command (fetchmail -v -f '/home/username_here/.fetchmailrc') using shell, it works fine.

Please Help.

Thanks

Chandresh Pant
Go to the top of the page
 
+Quote Post
chpant
post Aug 11 2004, 02:15 AM
Post #2


Whats this Lie-nix Thing?
*

Group: Members
Posts: 2
Joined: 11-August 04
From: Ghaziabad, Uttar Pradesh, India
Member No.: 3,531



Hi All,

Found the solution through common sense smile.gif. This is the solution to my problem.

0,5,10,15,20,25,30,35,40,45,50,55 * * * * fetchmail -v -f '/home/username_here/.fetchmailrc'

Thanks
Go to the top of the page
 
+Quote Post
feef
post Aug 11 2004, 02:16 AM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 15
Joined: 10-June 04
Member No.: 3,135



Try putting a /sbin or /usr/local/bin infront of your fetchmail command like this :

5 * * * * /sbin/fetchmail -v -f '/home/username_here/.fetchmailrc'

Otherwise, do a tail -f /var/log/messages and see what error your cronjob has.

Hope it helps. smile.gif
Go to the top of the page
 
+Quote Post
hughesjr
post Aug 11 2004, 05:35 AM
Post #4


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



YEP ....

This runs command at 5 minutes after every hour (00:05, 01:05, 02:05, etc.):
5 * * * * command

This one runs command every five minutes:
0,5,10,15,20,25,30,35,40,45,50,55 * * * * command


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
michaelk
post Aug 12 2004, 06:54 AM
Post #5


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,800
Joined: 23-January 03
Member No.: 360



Futhermore this also runs every 5 minutes
*/5 * * * * /command/to/execute
Go to the top of the page
 
+Quote Post
hughesjr
post Aug 12 2004, 07:04 AM
Post #6


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



well yea michaelk ... if you want to do it the easy way tongue.gif

(Actually, I forgot that works as well ... thanks michael)


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 16th December 2017 - 07:27 PM