- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Problem with cron
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
02-15-2001 12:18 AM
02-15-2001 12:18 AM
Problem with cron
Greetings!....
We are facing problem with cron daemon.
What ever job we schedule in cron it is spawning one more cron daemon and not at all processing submitted job like this enormous number of cron daemons generated.
To test this we have put an entry in cron:
* * * * * date >> /tmp/datefile 2>&1
which has to put date into /tmp/datefile for every minute, but generating one more /usr/sbin/cron daemon. Even we tested increasing timespan too, but same problem persists.
Can anyone please advice?..
Cheers and regards,
satish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2001 01:06 AM
02-15-2001 01:06 AM
Re: Problem with cron
Just a hunch, what is the parent proces ID (PPID) of each of this /usr/sbin/cron processes?
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2001 02:32 AM
02-15-2001 02:32 AM
Re: Problem with cron
I sounds like you have two instances of cron running.
Try ps -ef|grep cron and see how many /usr/sbin/cron are running.
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2001 06:55 PM
02-15-2001 06:55 PM
Re: Problem with cron
There are lot of processes which are spawned every minute... say 60 processes after 1hr(If cron job set to run for every minute).
Thanks and regards,
satish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2001 10:24 PM
02-15-2001 10:24 PM
Re: Problem with cron
Check that the pipe FIFO exists in /var/adm/cron. FIFO prevents duplicate cron processes from being run. If FIFO not existing in /var/adm/cron, a second cron process is allowed to startup.
# ll /var/adm/cron/FIFO
prw------- 1 root sys 0 Feb 16 14:22 /var/adm/cron/FIFO
Someone might have accidentally removed the FIFO file. If /usr/sbin/cron process has problems in creating the FIFO pipe, subsequent cron processes are allowed to startup.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2001 11:03 PM
02-15-2001 11:03 PM
Re: Problem with cron
Cheers....
Satish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2001 11:50 PM
02-15-2001 11:50 PM
Re: Problem with cron
Some possible further diagnostics:
1) What is the date/time of creation of the FIFO file? Is it created at the current time?
2) Are entries in /var/adm/cron/log updated?
3) What is the directory permissions of /var/adm/cron?
4) Does this phenomenon occur when you use "at" instead of "cron" to schedule a job?
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2001 12:50 AM
02-17-2001 12:50 AM
Re: Problem with cron
1) ls -l output:
prw------- 1 root sys 0 Jun 30 1999 FIFO
2) Entries have been made in cron log.
3) Directory permissions:
drwxr-xr-x 2 adm adm 1024 Feb 16 12:35 /var/adm/cron
4) No, at is working fine.
By the way, how to create a FIFO file?....
Cheers...
Satish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2001 02:12 AM
02-17-2001 02:12 AM
Re: Problem with cron
To create a pipe, use mknod ie.
# mknod FIFO p
Regarding your cron problem, search the patch database for cron patches, install the latest and see if the problem occurs again. This is because it is not normal for multiple duplicates of /usr/sbin/cron to run with FIFO existing.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com