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
03-18-2003 05:35 PM
03-18-2003 05:35 PM
1. Could anyone tell me why this unexpected cron job run again ?? And why the time is 22:00 ??
2. Is that any guilelines for schedule a cron job ? for example, avoid running different job at the same time ??
thanks in advance.
best regards,
Cat
p.s. My editing time is 21:27, but I don't think they are related ...
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2003 06:09 PM
03-18-2003 06:09 PM
Re: Cron Job
Unless you have the job specified twice in cron, there really isn't a way for cron to run it twice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2003 06:10 PM
03-18-2003 06:10 PM
Re: Cron Job
30 21 * * * /path/to/job_to_run
I would check for a double entry as well.
HTH
Jeremiah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2003 06:24 PM
03-18-2003 06:24 PM
Re: Cron Job
30 21 6,10,13,17,20,27 3 * /usr/bin/su -root -c /home/chess32/chess32_mrp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2003 06:54 PM
03-18-2003 06:54 PM
SolutionI also see that you are doing an su to root, Is this the crontab for an alternate user? If that is the case, then have you checked everyones crontab to ensure that their is not a duplicate in someone elses crontab?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2003 07:06 PM
03-18-2003 07:06 PM
Re: Cron Job
I would also question why you are doing an 'su - root' in the crontab. Why not just run the job from root's crontab?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2003 07:08 PM
03-18-2003 07:08 PM
Re: Cron Job
Things to remember.
You have no environment, no path.
If you want to use a utility in your script, use the full path name.
Post the crontab entry, but if it runs when you don't expect it, its probably just a typo.
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
03-18-2003 07:47 PM
03-18-2003 07:47 PM
Re: Cron Job
Cheers !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2003 09:15 PM
03-18-2003 09:15 PM
Re: Cron Job
i usually use the following template for my crontabs. This elimates all the risks of any typo errors.
e.g.
#*******************************************************************************
# min|hour |day |month|day |script
# | |of mo| |of wk|
#----|-----|-----|-----|-----|--------------------------------------------------
#*******************************************************************************
#*******************************************************************************
# END OF TABLE day0->Sunday day6->Saturday
#*******************************************************************************
Hope this helps!
regards
Yogeeraj