- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Scheduling cron
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
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
03-13-2001 01:29 PM
03-13-2001 01:29 PM
Scheduling cron
I want to schedule cron from a script, when I echo line into the crontabs file in /var/spool/cron/crontabs/ directory though the line is being displayed when the user does crontab -e
it does not get executed at the scheduled hour.
How should the scheduling be done.
.. praveen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2001 01:40 PM
03-13-2001 01:40 PM
Re: Scheduling cron
very bad idea to modify the crontabs in that directory
directly! Use "crontab FILE", and that will notify "cron",
perhaps with signal HUP. "FILE" would be the name of
your new crontable, including ALL the lines - old and
new.
Everything else is almost certain to fail!!!
HTH,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2001 01:42 PM
03-13-2001 01:42 PM
Re: Scheduling cron
Try echoing into a temporary file including its previous contents then let the script have crontab
Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2001 01:57 PM
03-13-2001 01:57 PM
Re: Scheduling cron
If you want to go in the same path as yours. Then try restarting the cron. It should work.
...Madhu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2001 11:54 PM
03-13-2001 11:54 PM
Re: Scheduling cron
why not using
batch [startdate]
to schedule a job ?
See 'man batch'
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2001 06:06 AM
03-14-2001 06:06 AM
Re: Scheduling cron
Try,
# crontab
set variable CRON=1 in /etc/rc.config.d/cron
# /sbin/init.d/cron stop
# /sbin/init.d/cron start
Cheers...
Satish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2001 06:46 AM
03-14-2001 06:46 AM
Re: Scheduling cron
Anyone who knows this to be inccorect please correct me, I'm a newbie
Just the basics.
AJ