- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Cron Job running twice
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
04-09-2001 09:50 AM
04-09-2001 09:50 AM
Cron Job running twice
40 20 * * * /home/dba/pg3/prodsc/dump_nite.bat
40 18 * * * /home/dba/pgd4/diag/nite_diag.bat
Why are they running twice?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2001 10:49 AM
04-09-2001 10:49 AM
Re: Cron Job running twice
The only other thing I can think of is the standard "make sure you have the latest patch".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2001 11:02 AM
04-09-2001 11:02 AM
Re: Cron Job running twice
I'm not sure how this would play into the portion about the scripts running only once when run during the day, however - are they being run in the cron for the same account?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2001 11:50 AM
04-09-2001 11:50 AM
Re: Cron Job running twice
crontab -e ????
The reason I ask is that I've seen similar problems when someone has gone in and edited the /usr/spool/cron/crontabs/[whatever] file with vi, instead of using crontab -e.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2001 01:20 PM
04-09-2001 01:20 PM
Re: Cron Job running twice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2001 12:16 AM
04-10-2001 12:16 AM
Re: Cron Job running twice
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2001 12:37 AM
04-10-2001 12:37 AM
Re: Cron Job running twice
Perform the following:
# Check your /var/adm/cron/log
Verify that your scheduled cron jobs are indeed ran twice by cron.
# ps -fae|grep cron
If ps shows two cron processes, then you could have two cron daemons running. One reason why you can have two cron daemons running is because the FIFO file in /var/adm/cron has been accidentally removed. To verify, perform the following:
# ll /var/adm/cron/FIFO
To overcome such a problem, kill off the later cron daemon and then restart your cron daemon:
# /sbin/init.d/cron stop
# /sbin/init.d/cron start
Make sure that the FIFO file is created properly by the cron daemon.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com