- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cron Question
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
07-13-2006 02:56 AM
07-13-2006 02:56 AM
Have you guys faced this before...
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 03:01 AM
07-13-2006 03:01 AM
Re: Cron Question
Yes,
I've seen this happen when the users didn't have rights to his/her own file in /var/spool/cron
I've seen in when some other process overwrites all the cron files, perhaps a root cron job.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 03:01 AM
07-13-2006 03:01 AM
Re: Cron Question
Please check to see if you have a /var/adm/cron/cron.allow and cron.deny,
check the permissions to see if the user has the rights to use cron.
Regards,
jaime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 03:03 AM
07-13-2006 03:03 AM
Solutioncrontab -l > myfile
vi myfile
crontab < myfile
You then always have a backup file. However, the crontab command is always porentially dangerous because if you do this:
crontab
then crontab is waiting for stdin and will overwrite your existing entry with a null entry.
I suspect what is really happening is that you have users that are simply typing "crontab" without either a -e or -l argument.
In any event, I still suggest that you not use -e.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 03:27 AM
07-13-2006 03:27 AM
Re: Cron Question
My solution to this problem is to run a cron job that backs up the crontab file every Sunday. That way I can use crontab -e without worrying.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2006 03:34 AM
07-13-2006 03:34 AM
Re: Cron Question
You shouldn't be using crontab -e; as you have discovered it's a potentially dangerous shortcut. You should do it like this:
crontab -l > myfile
vi myfile
crontab < myfile
That's the *only* way I edit them!