cron fail to run


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users cron fail to run
# 1  
Old 03-10-2002
Question cron fail to run

Hi,
Does anyone know why the cron job fail to run automatically ?
We have the problem with some Solaris 2.5.1 Machine !
The cron seemd to fail to submit the jobs defined at the defined time !!
Why ?
Sometime it runs OK,but sometime it fail .
We are very sure the problem is due to cron no ok,because other machines with the same cronjobs
run well !!
# 2  
Old 03-11-2002
Hard to help you without at least seeing your file.

(The amount of help you will get from the unix community will directly depend on how much information you provide in your questions).

Are you specifying the command as a just a command or the fully qualified pathname ? If not, I would suggest that you specify the full command path including /usr/.... whatever.

Also try running it on the command line yourself manually when you think it did not run.

What makes you think that it is running or not running sometimes ?
# 3  
Old 03-11-2002
Quote:
Originally posted by #1freebsddude
Hard to help you without at least seeing your file.

(The amount of help you will get from the unix community will directly depend on how much information you provide in your questions).

Are you specifying the command as a just a command or the fully qualified pathname ? If not, I would suggest that you specify the full command path including /usr/.... whatever.

Also try running it on the command line yourself manually when you think it did not run.

What makes you think that it is running or not running sometimes ?
Hi,
Thanks for quick reply !!
" What makes you think that it is running or not running sometimes ? "
The full crontable fail sometimes,but usually it runs OK !!
# 4  
Old 03-11-2002
Might you post your crontab listing (crontab -l) to allow us a better view?
# 5  
Old 03-11-2002
Quote:
Originally posted by Cameron
Might you post your crontab listing (crontab -l) to allow us a better view?
HI,

hp93k_3(asx)[home/asx]% crontab -l
#Kerwin Update
3,18,33,48 * * * * /home/asx/bin/auto_send_hp93k.sh
# 6  
Old 03-11-2002
Try the following to get more detail...

3,18,33,48 * * * * /home/asx/bin/auto_send_hp93k.sh 2> /home/asx/autosenderror.log

This will output any (if any) error messages to the log file.

Last edited by Cameron; 03-11-2002 at 02:02 AM..
# 7  
Old 03-11-2002
Some possibilities:

1. Running out of disk space
2. Running out of max processes
3. Someone tweaking the file or removing jobs, etc. changing stuff without your knowledge
4. Full moon Smilie

I think log dump suggestion by Cameron should give you better clues!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Cron using shh keys fail

Hi All, Hoping someone can help with something I'm sure is an easy fix. I'm trying to setup a cron to ssh to a server and check if a process is running. I've got keys setup from the jumpbox which I'm originating the check from (I don't have root privileges), when running the check manually from... (3 Replies)
Discussion started by: mutley2202
3 Replies

2. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies

3. Shell Programming and Scripting

Who -u gives different output if run from cron than if run from terminal?

If I run 'who -u' interactively or from a script invoked through bash in a tty on my Ubuntu 12LTS box I get an output like this: testuser pts/0 Dec 9 02:32 . 2163 (host.xx.yy) running the same through cron I get: testuser pts/0 2012-12-09 02:32 00:05 2163... (2 Replies)
Discussion started by: latimer
2 Replies

4. Shell Programming and Scripting

Run cron on every second Saturday ??

Hi, Can anyone help in editing CRON (OR) write a script to run another script every second saturday?? I tried to make use of DATE command to find the day but couldnt proceed further. your help is highly appreciated! Thanks, Mahi (11 Replies)
Discussion started by: mahi_mayu069
11 Replies

5. UNIX for Dummies Questions & Answers

cron does not appear to run

Hi everyone, I am having a problem with a cron, I am using Solaris 10 and need to run a php file every 5 minutes. I can run the file from the test user, but the cron does not seem to run. I do not see anything about it in /var/cron/log but see crons for other users running. What should I look... (10 Replies)
Discussion started by: atomicbits
10 Replies

6. UNIX for Advanced & Expert Users

Notify Me when job fail using cron

I would like to be notified when an Informix dbexport job fails on a TRU64 system. My idea is to send an email via telnet, but can only get telnet to do it interactively. I can do the following steps on my UNIX box interactively, but cannot send an email with a script. Can someone help? Is there... (3 Replies)
Discussion started by: ejaggers
3 Replies

7. Shell Programming and Scripting

Does not run via cron job

I have a perl script, when I ran manually it works perfect. I check the permissions which are fine. How can I find out why it is not running? how can I setup a log to check. I am running it on solaris 9. It compares multiple files, SCP and then send out an e-mail. As I said when I ran it... (2 Replies)
Discussion started by: amir07
2 Replies

8. UNIX for Dummies Questions & Answers

Where does cron run from?

I have a script in the same directory as some files and directories im trying to tar up and I have it run in cron. Well it runs but says it can't find the directories, you need to be in the directory where the script is for it to work. Here is my cron and script its crappy but it does the trick =).... (3 Replies)
Discussion started by: kingdbag
3 Replies

9. UNIX for Advanced & Expert Users

Fail to run init-script from crontab

I have written a "simple" shell-script (BASH) to monitor the logs of our Resin-applicationserver. Whenever Resin runs out of available heap-space, the script then tries to restart the Resin-server. My problem is that my "autopilot"-script fails when it's run from crontab. Here's what the... (5 Replies)
Discussion started by: indo1144
5 Replies

10. Shell Programming and Scripting

Why does cron run this differently?

test.ksh =================== #!/usr/bin/ksh APPLICATION=hr_app APPLICATION_UPPER=`echo $APPLICATION | tr ` echo $APPLICATION_UPPER > /tmp/test.txt echo $APPLICATION >> /tmp/test.txt which tr >> /tmp/test.txt =================== When I run this from the shell: /home/natter> more... (6 Replies)
Discussion started by: natter
6 Replies
Login or Register to Ask a Question