- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: crontab edit
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-24-2002 11:10 PM
09-24-2002 11:10 PM
vi /var/spool/cron/crontab/user
this change has no affect and system has in memory old cron file.
I tried
kill -1 (/usr/sbin/cron)
but this is not that proces becouse also without affect to system.
Which process is responsible for running a cron and what I have to do to reread new cron.
I understand the common way crontab -e , l ...
but for some purposes I would like to understand this way.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 11:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2002 11:19 PM
09-24-2002 11:19 PM
Re: crontab edit
#crontab -e username, creates a crontab file for that user. The user must ahve a entry in
/var/adm/cron/cron.allow file.
you can restart cron using
/sbin/init.d/cron stop
/sbin/init.d/cron start.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2002 03:30 AM
09-25-2002 03:30 AM
Re: crontab edit
Hi,
- First, check your current crontab file:
crontab -l > cronfile
- then make changes to it with vi
- submit the new file to crontab:
crontab cronfile
Good luck........
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2002 04:58 AM
09-25-2002 04:58 AM
Re: crontab edit
While "crontab -e" is a perfectly acceptable way to edit your crontab, I prefer to make changes to a copy of my crontab then implement it. Here's how:
crontab -l >cron.file
vi cron.darrell
(make my changes)
crontab cron.file
I just find this safer.
And as you have discovered, never directly edit /var/spool/cron/crontabs files directly.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2002 05:03 AM
09-25-2002 05:03 AM
Re: crontab edit
Anyway, I made a typo in my example. It should be:
crontab -l >cron.file
vi cron.file
(make my changes)
crontab cron.file
No points please.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2002 03:46 AM
09-26-2002 03:46 AM
Re: crontab edit
My experience has been that crontab -e works fine. However, I edited a cron file this way once and the cron file disappeared. Fortunately, I had a copy in my directory. Bill Hassell has suggested in his sysadm training to edit a copy with vi and then run the file using crontab "filename".