- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: CronTab
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
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
01-06-2001 01:25 PM
01-06-2001 01:25 PM
CronTab
Thanks for your thoughts.
DKD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2001 06:41 PM
01-06-2001 06:41 PM
Re: CronTab
What is happening here is very unusual though. I would look carefully at the boot logs to see if maybe someone at some time has added something different to somehow 'protect' cron. I would also look carefully at init.d scripts (crond in particular) to see if something is there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2001 10:30 PM
01-06-2001 10:30 PM
Re: CronTab
Here is something you can do so you don't have to manually enter your script every time.
1) Make a backup copy of your root crontab file and call it something like root.crontab. You can save it anywhere you want. root's home directory would be a good place. Just remember to update this file whenever you make a change to root's crontab file.
2) When you have to redo your backup entry you can do 'crontab /root.crontab', as the root user of course, and then it will read the contents of /root.crontab into root's real crontab file.
I know this doesn't help you solve your real problem though. I would look at the system init scripts and see if someone is doing something like removing the root crontab file for some strange reason. The system itself shouldn't be doing anything to it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2001 10:00 AM
01-07-2001 10:00 AM
Re: CronTab
Is your /var dir at 100% as this can cause a disappearing crontab.
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2001 02:17 PM
01-08-2001 02:17 PM
Re: CronTab
What I have are 2 older 9000 boxes a 800/H60 and a 800/H60 inaddition to my newest Class D 9000 I haven't had to do anything to crontab after rebooting the two older models. I guess older is better. AH AH never mind.
Somebody had told me earlier about making sure my entry was in a startup script. so when the systtem reboots it gets loaded back in. I haven't had time to look into that. My Crontab has all kinds of entries and none of those get removed just my backup entry. This doesn't make sense to me
My Var diectory isn't full
Any other suggestion would be helpful thanks
DKD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2001 04:24 PM
01-08-2001 04:24 PM
Re: CronTab
to aid troubleshooting, check your /etc/rc.log and see if any errors occur during your system startup.
Check also your /var/adm/syslog/syslog.log for errors from cron.
Most importantly, check your cron LOG in /var/adm/cron and observe when your scheduled job disappears.
Hope this helps. Regards.
Steven Sim
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2001 04:30 PM
01-08-2001 04:30 PM
Re: CronTab
Is this problem specific to only one user? Check also the last modified timestamp for your user's crontab to identify when the cron job was actually changed. Subsequently, find out what the system conditions were at the time of change from logs?
Hope this helps. Regards.
Steven Sim
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2001 06:46 AM
01-09-2001 06:46 AM
Re: CronTab
It seems to be Your crontab was modified. Check /var/spool/cron/crontabs/username file modification date.
Our have az application under ServiceGuard which rewrite the crontabs when package start.
If You want to found what happend write a script, named crontab which logging the date and the processes, after call right crontab. Do it in the first path in $PATH environment.
Do not forget Your crontab can modify root and owner .
regards, Saa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2001 03:49 PM
01-09-2001 03:49 PM
Re: CronTab
The user in question is Root and I did see a new crontab file under the user Root created with the backup reentered.
I inherited this system so I am still finding things that don't look right and it is going to take some time to try and get it into the right order if that is possible.
For some reason I was not able to assign any points to your replies hope I can in the future. Thanks DKD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2001 03:54 PM
01-09-2001 03:54 PM
Re: CronTab
Apparently you have to reply to the responses before you can assign any point as I just found out. Oh well if we didn't learn something new in this job is sure could get boring.
Thanks all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2001 07:21 PM
01-09-2001 07:21 PM
Re: CronTab
When you reply to a message it automagically attempts to log you in. When you are logged in, you see a message like "Welcome, Dan Decker" at the bottom of the "IT resource center" menu on the left side of the screen. If you are not logged in you will see a message saying something like "Please Log In" in that same spot. There is a 'login' option on the menu on that same menu.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2001 03:48 AM
01-10-2001 03:48 AM
Re: CronTab
The crontab can modified by crontab command ( or edited the crontab file, but never do that ) so if You have time and resource do that:
1, find all script in Your system :
# find / -exec file {} \; | grep command > /tmp/scripts
# grep crontab `cat /tmp/scripts`
May be You will find script which modified Your crontab.
regards, Saa