LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-16-2004, 03:09 PM   #1
aurelio26
Member
 
Registered: Dec 2003
Location: CANADA
Distribution: Fedora
Posts: 40

Rep: Reputation: 15
CRON question


How long I have to wait after updating crontab to check if it works or not?

I tried to add new job, but time passed over half an hour and nothing happened.
This is what I did
crontab -l > new_crontab

after I VI the file I added this line
30 1100 * * * /FULL_PATH/file.sh

crontab -u root new_crontab

I test file with at
at 1130 < file.sh

and it works fine, but I want this script to be executed 11:30 everyday.



Thanks
 
Old 09-16-2004, 03:13 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,430

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
Quote:
30 1100 * * * /FULL_PATH/file.sh
Typo? Should be
30 11 * * * /FULL_PATH/file.sh

I assume that file.sh permissions are set to executable.

Last edited by michaelk; 09-16-2004 at 03:15 PM.
 
Old 09-16-2004, 04:19 PM   #3
aurelio26
Member
 
Registered: Dec 2003
Location: CANADA
Distribution: Fedora
Posts: 40

Original Poster
Rep: Reputation: 15
You're right man,

Typo!!!!

Thanks michaelk!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cron question dennis_89 Linux - General 2 07-05-2004 03:09 PM
cron question paperdiesel Linux - Newbie 2 10-29-2003 04:28 PM
Cron question sketch7 Linux - General 1 09-10-2003 09:03 PM
Cron question. Thetargos Linux - Software 1 07-19-2003 07:19 AM
Cron Question Stephanie Linux - General 1 06-29-2001 04:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration