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 08-24-2010, 06:45 AM   #1
ashu talwar
LQ Newbie
 
Registered: Aug 2010
Posts: 5

Rep: Reputation: 0
Do I need to restart the crontab, if I change the script which was running


Hello

Please advise that If I am fire a crontab which is running myScript
The crontab is running
Now if I change the source code of myScript
Do I need to restart the crontab, to take into effect my changes
Ie I want in the existing crontab to take my updated script

Or it will take its own
 
Old 08-24-2010, 07:18 AM   #2
vinaytp
Member
 
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 704

Rep: Reputation: 55
You cannot restart crontab. corntab is a command and crond is the deamon which takes care of your crontab entries to execute them at regular intervals.

No need to restart crond.

It will take care as long as you do not change location of the script.

Last edited by vinaytp; 08-24-2010 at 07:39 AM.
 
Old 08-24-2010, 01:53 PM   #3
gdejonge
Member
 
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
If you change the crontab file make sure you use the
Quote:
$ crontab -e
command. This will take care of notifying the crond daemon that it has to reread the crontab file.

-----------------
Gerrard
 
  


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
crontab not running script sunlinux Linux - Newbie 5 05-18-2010 07:21 AM
Shell Script not Running from Crontab venkatramanj SUSE / openSUSE 3 01-13-2010 06:15 AM
Running a script with crontab. glore2002 Slackware 3 06-05-2008 09:48 PM
error running script on crontab haora Linux - Newbie 3 03-11-2005 05:02 PM
Shell script running via crontab problem. thetruethugg Linux - Software 13 12-19-2003 09:56 PM


All times are GMT -5. The time now is 12: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