cron is already running message...


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers cron is already running message...
# 1  
Old 07-11-2005
cron is already running message...

I am trying to schedule a new job but I get

# cron
# ! cron is already running Mon Jul 11 08:28:51 WAT 2005
! ******* CRON ABORTED ******** Mon Jul 11 08:28:51 WAT 2005

I tried the -l and -e switches but I get the same message

I am using HP-UX

Thanks.
# 2  
Old 07-11-2005
I think you want the crontab command. cron normally gets run once as the system boots.
# 3  
Old 07-11-2005
Exactly - use crontab.

Cron creates a fifo that exists during the entire execution period of the cron daemon - if you try to execute cron subsequently it'll check for the existence of this file and then abort if it finds it - i.e. if cron is already running.

As a side note to others - always use the correct script (i.e. /etc/init.d/cron start or whatever) when starting cron, if that's what you want to do.

Cheers
ZB
# 4  
Old 07-11-2005
Thank you very much guys...
What would I do with out you... Smilie
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Cron job running even after cron is removed

Hi , I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility ) I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies

2. Shell Programming and Scripting

Run cron on ssh, error message

how to run the script below * * * * * /usr/bin/wget -O - -q "http://example.com/scheduler/cron" when i run the script, the error message show as below: $ * * * * * /usr/bin/wget -O - -q "http://website.com/?q=admin/settings/scheduler/cron" -sh: CHANGELOG.txt: not found $ 30 15 * * *... (11 Replies)
Discussion started by: dolbyater
11 Replies

3. AIX

AIX power problem cron message on screen

Hello, I keep getting this message even after i removed it from the cron enteries it was added automatically Broadcast message from root@oradb (tty) at 12:00:00 ... rc.powerfail:2::WARNING!!! The system is now operating with a power problem. This message will be walled every 12... (2 Replies)
Discussion started by: filosophizer
2 Replies

4. UNIX for Dummies Questions & Answers

How to reply a message in Cron?.

Hi; I want to schedule a backup in the cron, I know that the backup will use 2 tapes. How do I make to see the message of tape change and to respond him? TIA Regards (3 Replies)
Discussion started by: gareljos
3 Replies

5. UNIX for Advanced & Expert Users

Cron not running

Hello All, I have installed a few crons on a machine. But for some reason the crons just don't run. I have checked the permissions on the files and also restarted the cron daemon. But it doesn't seem ti help. Can anyone suggest any other things I can do to get it running again? Regards,... (6 Replies)
Discussion started by: garric
6 Replies

6. Shell Programming and Scripting

Cron not running .. please help

i have a simple script that ftp a file out, manually running it works fine. #!/bin/sh ftp 152.226.69.48 << cmd bin get applicant_vw.txt quit cmd but when I cron it, 14 9 * * * /opt/home/XXX/XXX/dailyjob.sh > /opt/home/XXX/XXX/cronlog.txt seems that it was executed because i can... (2 Replies)
Discussion started by: beisaikong
2 Replies

7. Solaris

Sun Solaris version 10: cron job does not send the default message.

Hi all, Our servers were on Sun Solaris 8.1, anytime a cron job executed the user ran that job received a email of job's output. I think that the default and Administrator did not setup anything. However, when we upgraded the OS to Sun Solaris ver.10, the cron job is no longer send a email... (2 Replies)
Discussion started by: cmnguyen
2 Replies

8. UNIX for Advanced & Expert Users

Cron wall message problem

Operating system sun solaris 5.8 My problem is : crontab -e 15 16 * * * /bckscripts/oo vi /bcscripts/oo = wall " stop backup " the system at the 16:15 all day time doesn't display message " stop backup " What's the problem ??? i'am root user the follow is the root dir... (2 Replies)
Discussion started by: tt155
2 Replies

9. UNIX for Dummies Questions & Answers

Cron message queue problem

I have a problem with running jobs out of cron on Solaris 8. Initially when one of the users on the box (other than root) attempted to save the crontab after modification by using "crontab -e", the message "Crontab: cannot open the crontab file in the crontab directory" was given. I then... (7 Replies)
Discussion started by: mattd
7 Replies

10. UNIX for Advanced & Expert Users

not running in cron

I have written a shell script and when i run it from shell prompt it runs fine but in the cron it only runs partially. That means cron is working fine. there is a command which i am using in the script which doesn't run at all. That comman uses different user privileges like ptadmin i am not... (4 Replies)
Discussion started by: ajnabi
4 Replies
Login or Register to Ask a Question