- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- CRON Entry disappeared (effect of ps -eflx?)
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
05-16-2005 05:32 AM
05-16-2005 05:32 AM
I've looked at the shell history and one entry was :
ps -eflx|cron
Could this be a plausible explanation for the account's crontab disappearance? What other circumstances would render the disappearance of a cron entry apart from a "crontab -d"? Would two sessions doing a "crontab -e" also null the account's crontab entries?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 05:44 AM
05-16-2005 05:44 AM
Re: CRON Entry disappeared (effect of ps -eflx?)
That's a strange one. I tried it on a test box here and your 'ps' command didn't nuke my crontab, but I guess anything is possible.
Was the crontab file for the user (/var/spool/cron/crontabs/
JP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 05:47 AM
05-16-2005 05:47 AM
Re: CRON Entry disappeared (effect of ps -eflx?)
No record at all in command history of both root and the account that it was nulled out. There are however entries for edits done as there were several "crontab -e" commands registered.
In the past I observed this account to have more than one crontab -e session opened.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 05:52 AM
05-16-2005 05:52 AM
Re: CRON Entry disappeared (effect of ps -eflx?)
When modifying the crontab, the user invokes using 'cron -e'. For removing cron entries use 'cron -r'. NOTE, the 'e' key and the 'r' key are right next to each other. Very easy to 'fat-finger'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 06:03 AM
05-16-2005 06:03 AM
Re: CRON Entry disappeared (effect of ps -eflx?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 06:11 AM
05-16-2005 06:11 AM
SolutionI did some experimenting with the simultaneous crontab -e sessions. The only way I can see that nulling things out is if the sessions were ended simultaneously. If they end sequentially, the last one wins.
The only other explanation I can think of is that someone made a finger check in their editing and ended up writing out a null file.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 06:27 AM
05-16-2005 06:27 AM
Re: CRON Entry disappeared (effect of ps -eflx?)
Something else had to happen.
Perhaps the /var filesystem got full or something.
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
05-16-2005 06:27 AM
05-16-2005 06:27 AM
Re: CRON Entry disappeared (effect of ps -eflx?)
crontab -l > $HOME/crontab.safe/crontab.current
Then any change to crontab is made by first using diff to compare the output of crontab -l with crontab.current...if different, time to talk to the users again and remind them of the process. Then edit crontab.current and finally: crontab crontab.current
That way, a completely separate copy of crontab is maintained in a well-know place and accidental changes are harder to make.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 06:58 AM
05-16-2005 06:58 AM