- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Difference between /etc/crontab and crontab -e
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
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
09-09-2002 11:42 PM
09-09-2002 11:42 PM
Stefan
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2002 11:54 PM
09-09-2002 11:54 PM
Solutionyou can say editing /etc/crontab will make cron
configuration static or permanent. cron daemon
will first look at this file for jobs.
But doing crontab -e will edit current crontab
file and is dynamic.
You will also find files that control cron's actions in the /var directory. Remember that /var is where varying data get stored. The spooler for cron is located here. The cron spool contains the queue of work to be done and is occupied while the computer is doing or preparing to do the work. Once the job is finished, the cron spooler is emptied and waits for the next scheduled job to be placed in the spooler.
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-11-2002 07:29 AM
09-11-2002 07:29 AM
Re: Difference between /etc/crontab and crontab -e
crontab copy_file.
The reasons I do this:
1. I have fat finger'd editing and had to recover lost entries.
2. I have junior admins. that make "improvements". I can compare the current entries with my static/master. Which I can decide to update or delete the changes.
3. I have a backup resource to easily recover lost cron entries.
Rory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 02:25 PM
09-12-2002 02:25 PM
Re: Difference between /etc/crontab and crontab -e
run crontab -l > /tmp/
now make a copy of this file and name it something similar with a new on it...
now edit that last copy with vi...
run crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 06:05 PM
09-12-2002 06:05 PM
Re: Difference between /etc/crontab and crontab -e
Any changes to this file are read dynamically (I beleive it's done based on the last modification time of the file).
"crotnab -e" is used for 'User crontabs'. Any user can add jobs to their own crontab. This will get executed as that user with a basic environment.
User crontab's *MUST BE MODIFIED* using the 'crontab' utility. Modifying the /var/spool/cron/* files directly can cause unexpected results (to say the least).
Using 'crontab -e' edits the jobs in place. 'crotnab -l' will list for the current user. 'crontab some.file' will re-write the current crontab for the current user with the tabs listed in 'some.file'.
'crontab -u