- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: Crontab not accepting changes
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
Discussions
Discussions
Forums
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
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-2008 06:20 AM
тАО11-13-2008 06:20 AM
Crontab not accepting changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2008 07:25 AM
тАО11-13-2008 07:25 AM
Re: Crontab not accepting changes
I'm not sure where the "crontab -e" file is supposed to be stored.
But you could just aswell use /etc/crontab or a local crontab file which you can execute by running:
# crontab /path/to/local/crontab.file
Hope this helps you :)
Best regards
Fredrik Eriksson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2008 09:51 AM
тАО11-13-2008 09:51 AM
Re: Crontab not accepting changes
crontab -l > cron.root
crontab -r
crontab cron.root
Then try to edit again. This is to ensure that permissions for the cron file are correct.
Also, ensure that the crontab command has the SUID and SGID bit enabled:
# ls -la $(which crontab)
-rwsr-sr-x 1 root root 311288 mar 14 2007 /usr/bin/crontab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2008 10:28 AM
тАО11-13-2008 10:28 AM
Re: Crontab not accepting changes
I just tried this and still have the smae issue.
/var/spool/cron/root
-rw------- 1 root root 3.2k Nov 13 12:17 root
-rwsr-xr-x 1 root root 21080 Apr 14 2002 /usr/bin/crontab
The funny thing is I can edit the /var/spool file and crontab -e shows the changes, but a straight edit using crontab -e does not even when :w! is used and states cron was updated, but I suspect the update only refers to the /tmp file and not the actual cron file which is never updated on exit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2008 10:32 AM
тАО11-13-2008 10:32 AM
Re: Crontab not accepting changes
├В┬┐Can you upload a txt file with all your procedure?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2008 11:48 AM
тАО11-13-2008 11:48 AM
Re: Crontab not accepting changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2008 12:29 PM
тАО11-13-2008 12:29 PM
Re: Crontab not accepting changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-13-2008 07:30 PM
тАО11-13-2008 07:30 PM
Re: Crontab not accepting changes
# Monitor load avg on noble boxes
#----------------------
*/5 * * * * /root/monitor/loadavg.pl
#----------------------
above entry in your crontab looks to me wrong.
A crontab file has five fields for specifying day , date and time followed by the command to be run at that interval.
* * * * * command to be executed
- - - - -
| | | | |
| | | | +----- day of week (0 - 6) (Sunday=0)
| | | +------- month (1 - 12)
| | +--------- day of month (1 - 31)
| +----------- hour (0 - 23)
+------------- min (0 - 59)
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2008 04:58 AM
тАО11-14-2008 04:58 AM
Re: Crontab not accepting changes
>above entry in your crontab looks to me wrong.
You might want to explain what you think is wrong? That "*/5" syntax seems to be linux for every 5 minutes. (Not valid for HP-UX though.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-14-2008 07:42 AM
тАО11-14-2008 07:42 AM