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
11-13-2001 10:52 AM
11-13-2001 10:52 AM
CRON
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 10:55 AM
11-13-2001 10:55 AM
Re: CRON
crontab filename
Of course, restart cron
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 11:00 AM
11-13-2001 11:00 AM
Re: CRON
/var/spool/cron/ and all of its subdirectories.
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 11:07 AM
11-13-2001 11:07 AM
Re: CRON
You can create a new crontab file for root. Or restore it from the backup. The filename is /usr/spool/cron/crontabs/root
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 11:35 AM
11-13-2001 11:35 AM
Re: CRON
Make a habit of copying the crontab to an other location.
If fact let cron do it for you every night.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 11:48 AM
11-13-2001 11:48 AM
Re: CRON
you can update the file with changes and enter
crontab filename
to submit it as a cronjob.
Eileen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 04:41 PM
11-13-2001 04:41 PM
Re: CRON
There are a few ways to avoid this happening where cron files get removed.
Always keep a copy on the system(whether in 'root's home directory or somewhere else)
Never use crontab -e to edit the cron file.
Always use 'crontab -l >/tmp/mycron' , edit the file and submit it 'crontab /tmp/mycron', that way there is always a file on hand.
We use 'rcs' for any changes to crontab, that way we always have a copy and all changes that have been made.
My 2 cents worth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2001 06:32 PM
11-13-2001 06:32 PM
Re: CRON
Then use "#crontab root".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2001 04:54 AM
11-14-2001 04:54 AM
Re: CRON
I.e. you first restore the file from somewhere (probably from the /var/spool/cron/crontabs/root file on your backup media), then *copy* the file somewhere, let's say to /crontab.root and then issue the crontab(1) command:
# crontab /crontab.root
The reason for this is that cron(1M) only reads the 'spool' copy (/var/spool/cron/crontabs/root) when it starts, i.e. normally at system boot. The file is *not* re-read unless crontab(1) tells cron(1M) to do so, so if you do not use crontab(1), cron(1M) may/will never run the jobs listed in the 'spool' copy.