- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- weird crontab error
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
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
тАО07-18-2006 08:20 AM
тАО07-18-2006 08:20 AM
hpbest# crontab -e
crontab: can't open your crontab file.
But, I know that the file exists:
hpbest# cd /var/spool/cron/crontabs
hpbest# ll
-r-------- 1 root sys 4228 Jul 18 15:58 root
Also, if you do a "crontab -l", it shows the file. I _can_ edit the file directly but, feel more comfortable using "crontab -e".
There is an allow file:
hpbest# find . -name cron.allow
./var/adm/cron/cron.allow
hpbest# more /var/adm/cron/cron.allow
root
etc...
This is HP-UX 10.01.
Any ideas?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2006 09:13 AM
тАО07-18-2006 09:13 AM
Re: weird crontab error
corrupted cron file?
# mv /var/spool/cron/crontabs/root /var/spool/cron/crontabs/root.old
# crontab -e
and add the entries from your old cron file.
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2006 11:09 AM
тАО07-18-2006 11:09 AM
Re: weird crontab error
hpbest# mv root root.old
hpbest# ll
total 16
-r--r--r-- 1 root informix 2375 Mar 14 11:50 informix
-r-------- 1 root sys 4228 Jul 18 16:33 root.old
hpbest# crontab -e
crontab: can't open your crontab file.
So, I put it back:
hpbest# crontab root.old
warning: commands will be executed using /usr/bin/sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2006 01:45 PM
тАО07-18-2006 01:45 PM
Re: weird crontab error
Personally, I do not like to use crontab -e because, I make to many mistakes
I perfer:
crontab -l > root.old
cp root.old root.new
vi root.new (then make the changes)
crontab root.new (activate the changes)
If I get an error or discover a problem,
I have a ready recovery copy.
I regulary compare my saved "golden" copy with the active copy. This helps me track uncontrolled change...
Rory
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2006 10:05 PM
тАО07-18-2006 10:05 PM
Re: weird crontab error
check this doc (HPUX 10.10)
Title: Editing /var/spool/cron/crontabs/file causes problems; use crontab
Document ID: A4581686
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062940497
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2006 10:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2006 11:54 PM
тАО07-18-2006 11:54 PM
Re: weird crontab error
to 'refresh' your crontab-entry, do
crontab -l >~/mycrons
Revise the file ~/mycrons , and then activate the new entries via
crontab ~/mycrons
mfG Peter
BTW: HP-UX 10.01, aha.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 06:00 AM
тАО07-24-2006 06:00 AM
Re: weird crontab error
Thanks guys!
Steph
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2006 08:41 AM
тАО07-24-2006 08:41 AM
Re: weird crontab error
glad to hear that our submissions were not complete useless; so look at
http://forums1.itrc.hp.com/service/forums/helptips.do?#28
mfG Peter