Operating System - HP-UX
1834187 Members
2460 Online
110064 Solutions
New Discussion

Modify an script file that is executed by cron

 
SOLVED
Go to solution
Ana Perez_3
Occasional Contributor

Modify an script file that is executed by cron

Hello:

I have an easy question for you, i have a production system in which cron is used to execute a script called for example /tmp/script.sh, do I need to restart cron if make any modification to the script?

Regards.
7 REPLIES 7
Stanimir
Trusted Contributor
Solution

Re: Modify an script file that is executed by cron

No, you dont need to restart the cron.

Regards,
Stan
Naveej.K.A
Honored Contributor

Re: Modify an script file that is executed by cron

HI,

No not required to restart the cron.

regds
Naveej
practice makes a man perfect!!!
T G Manikandan
Honored Contributor

Re: Modify an script file that is executed by cron

NO.not required.the modification is only with the script.

Restart cron only if the time/date is changed.
Francisco J. Soler
Honored Contributor

Re: Modify an script file that is executed by cron

Hi Ana,
be careful with the script permissions if you modify it, the script must have execution permissions.

Frank.
Linux?. Yes, of course.
SANTOSH S. MHASKAR
Trusted Contributor

Re: Modify an script file that is executed by cron

Hi Ana,Not required to restart the cron.-Santosh
Bruno Ganino
Honored Contributor

Re: Modify an script file that is executed by cron

You must restart cron only if changed date/time.
Bruno
Torino (Turin) +2H
Shyjith P K
Frequent Advisor

Re: Modify an script file that is executed by cron

Hi

No need to restart cron. Hope you have not modifed the crontab.

cheers
shyjith