- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: resubmitting cron jobs
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2005 01:53 PM
08-04-2005 01:53 PM
We have a script say abc.sh running through cron job. We just wanted to delete couple of lines.
How to implemented this ? Do we need to re-submit the cron job ?
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2005 02:08 PM
08-04-2005 02:08 PM
Re: resubmitting cron jobs
change of the abc.sh DO NOT need to re-submit the job.
GOOD LUCK!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2005 02:27 PM
08-04-2005 02:27 PM
Re: resubmitting cron jobs
You dont need to re-submit the cronjob, but if you want to make sure just do this to restart the cronjob :
# /sbin/init.d/cron stop
# /sbin/init.d/cron start
Hope this help you.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2005 02:37 PM
08-04-2005 02:37 PM
Re: resubmitting cron jobs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2005 05:35 PM
08-04-2005 05:35 PM
Re: resubmitting cron jobs
You can change the file which is called through that cron job. The file is read and executed everytime that job is run and is not kept in buffer. So doing the chages to the file itself shall be enough. Allthough monitor it once after changes for proper execution.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-04-2005 05:37 PM
08-04-2005 05:37 PM
Re: resubmitting cron jobs
Just modify the script, you need not resubmit. System will execute from its location it does not make a copy anywhere...
Cheers!!!
eknath
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2005 08:14 PM
08-07-2005 08:14 PM
Re: resubmitting cron jobs
you do not need to re-submit the cron for
your script so just modify your script
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2005 11:01 PM
08-07-2005 11:01 PM
Re: resubmitting cron jobs
If you see the crontab -l you would see the the time and other day parameters when this script of your is executed. You can change the timings of your script file by modifying the schedule by crontab -e command. the format in the crontab reads somehting like this
# 00 00 * * * /usr/local/scripts/cronscript
# | | | | | |
# | | | | | script to run
# | | | | +---------- month
# | | | +------------ day
# | | +-------------- day of the week 0-6, 0 = sunday, 1-5 = mon to fri
# | +----------------- hour of the day 00 to 23
# +-------------------- minute 00 to 59
As soon as you modify the cron file, the script would be executed on the next execution time. It would be picked from the same location as it was mentioned in the crontab.
Rgds,
Himanshu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2005 12:30 AM
08-08-2005 12:30 AM
Solutionthe cron job will execute as abc.sh
you can thus change the abc.sh independently.
so no need to modify the crontable.
You may wish to view the content of the crontab using command: crontab -l
If you want to change the scheduling in the crontab, it is better that you first save the content to a file using: crontab -l > crontab.txt
then, edit the file:
vi crontab.txt
and finally load the file to activate the changes:
crontab crontab.txt
if you are not at ease with this, use SAM!
regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2005 07:40 PM
08-08-2005 07:40 PM
Re: resubmitting cron jobs
You can implement using different approach.
Solution 1. Edit the cron entries by invoking this command "contab -e". This will open the crontab temp file. Modify the content and save the file. When the next time cron runs changes will takes place.
Solution 2. Modify the contents in cron script file "abc.sh". Remove the cron entries by exectuing "crontab -r". Then execute "crontab abc.sh". Now the changes will takes place.
--Venkatesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2005 08:03 PM
08-08-2005 08:03 PM
Re: resubmitting cron jobs
Cron is just like automating execution of scripts based in time and date. It will store script contents at all. ;)
hth.