- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- A question
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
01-07-2008 05:59 AM
01-07-2008 05:59 AM
A question
I was going to check the cron logs by moving to var/adm/cron. I changed directories to var/adm and instead of typing cd cron there, I typed cron by error. The machine gave me the following error:
cron
unix20:# ! cron is already running Mon Jan 7 08:39:10 EST 2008
! ******* CRON ABORTED ******** Mon Jan 7 08:39:10 EST 2008
I am just kinda curious if that thing is of big issue or not. Because that machine is the main production server.
An earlier reply is highly appreciated.
Regards,
Ali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2008 06:13 AM
01-07-2008 06:13 AM
Re: A question
use this to check whether cron is still running or not:
ps -ef | grep cron
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2008 06:13 AM
01-07-2008 06:13 AM
Re: A question
ps -ef |grep cron
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2008 07:51 AM
01-07-2008 07:51 AM
Re: A question
Your scenario is actually a pretty good example of what *can* happen.
In this case you attempted to start a daemon while an instance of it was already running. Cron started up, checked to see if another instance was already running, found one, informed you of this fact and then exited. Nothing got broken.
The important thing to notice here is that cron was *smart* enough to check for a running instance *before* doing anything else. Some less sophisticated software (or command) might not do that.
So the answer to your question is "it depends". It depends on what command you run and how that particular software handles the situation.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2008 10:24 AM
01-07-2008 10:24 AM
Re: A question
For reviewing the logs, why bother to copy them, thus opening yourself up for a typo.
If all you want to do is review, then just type:
#more /var/adm/cron/log
Rgrds,
Rita