cron jobs not run


 
Thread Tools Search this Thread
Operating Systems Linux cron jobs not run
# 1  
Old 02-13-2007
cron jobs not run

hi,

I am newbie,

I had set cron jobs to update something on one time very day,
I had tested the script, it run fine,

but the cron jobs seem never run.

some help?

Thanks.
# 2  
Old 02-13-2007
Is the cron daemon running, if not sure do
Code:
service crond restart

then test it by installing a dummy cron job like
Code:
* * * * * date >> /tmp/dates.txt

# 3  
Old 02-13-2007
I am sure the services is start.

I will try "date >> /tmp/dates.txt"

Thanks.
# 4  
Old 02-13-2007
you also have a cron log that may shed some light on what's going on...

Code:
# tail -9 /var/log/cron
Feb 13 07:01:01 myBOX crond[26926]: (root) CMD (run-parts /etc/cron.hourly)
Feb 13 07:10:01 myBOX crond[26948]: (root) CMD (/usr/lib/sa/sa1 1 1)
Feb 13 07:20:01 myBOX crond[26957]: (root) CMD (/usr/lib/sa/sa1 1 1)
Feb 13 07:30:01 myBOX crond[26967]: (root) CMD (/usr/lib/sa/sa1 1 1)
Feb 13 07:40:01 myBOX crond[26976]: (root) CMD (/usr/lib/sa/sa1 1 1)
Feb 13 07:50:01 myBOX crond[26994]: (root) CMD (/usr/lib/sa/sa1 1 1)
Feb 13 08:00:01 myBOX crond[27098]: (root) CMD (/usr/lib/sa/sa1 1 1)
Feb 13 08:01:01 myBOX crond[27111]: (root) CMD (run-parts /etc/cron.hourly)
Feb 13 08:10:01 myBOX crond[27181]: (root) CMD (/usr/lib/sa/sa1 1 1)


Last edited by Yogesh Sawant; 02-27-2010 at 01:22 PM.. Reason: added code tags
# 5  
Old 02-13-2007
I had find out what is wrong, Thanks for all.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to run multiple cron jobs?

I have two scripts which I'm tying to run one after the other- this is what I've tried: 00 14 * * * /path/one.sh && /path/two.sh I've also tried putting each script on a different line: 00 14 * * * /path/one.sh 00 14 * * * /path/two.sh Can this be done? (1 Reply)
Discussion started by: $shell_Learner
1 Replies

2. Shell Programming and Scripting

Shell script to run multiple jobs and it's dependent jobs

I have multiple jobs and each job dependent on other job. Each Job generates a log and If job completed successfully log file end's with JOB ENDED SUCCESSFULLY message and if it failed then it will end with JOB ENDED with FAILURE. I need an help how to start. Attaching the JOB dependency... (3 Replies)
Discussion started by: santoshkumarkal
3 Replies

3. Shell Programming and Scripting

Cron Jobs

How to see which cron jobs are not running? (2 Replies)
Discussion started by: rahul.raj1989
2 Replies

4. Solaris

Cron jobs and at jobs

There are two jobs in Solaris , Cron and at jobs.. I know how to disable or enable cron jobs. How can I enable at jobs and disable it. Kindly help. Rj (2 Replies)
Discussion started by: jegaraman
2 Replies

5. Shell Programming and Scripting

cron jobs

Hi, please help on this am trying to exec the below mentioned cron jobs but its getting failed fro the past two days ###but when am trying to execte the cron by the times 23,29 18 * * * /export/home/inrvgo/thelak/China.sh its getting exec properly please help on this #... (8 Replies)
Discussion started by: thelakbe
8 Replies

6. UNIX for Dummies Questions & Answers

cron jobs

Hi, We have a group of hosts using which the cron jobs are submitted... Few days ago i had submitted a cron job in of these hosts, but unfortunately forgot the host name :( Can anyone please help me out in finding this host name from which the cron s submitting the job, i dont want the... (2 Replies)
Discussion started by: bhavanisree
2 Replies

7. Shell Programming and Scripting

General Q: how to run/schedule a php script from cron jobs maybe via bash from shell?

Status quo is, within a web application, which is coded completely in php (not by me, I dont know php), I have to fill out several fields, and execute it manually by clicking the "go" button in my browser, several times a day. Thats because: The script itself pulls data (textfiles) from a... (3 Replies)
Discussion started by: lowmaster
3 Replies

8. UNIX for Advanced & Expert Users

cron jobs...

I need to start a job every friday night at 8:00 P.M , it runs all the day on Sat and Sun....can somebody tell me how to do this...I understand crontab...but haven't used it.........can u write some steps.....how to create a file and call.....I honestly dont know? Plz help.Thanks (2 Replies)
Discussion started by: RubinPat
2 Replies

9. UNIX for Dummies Questions & Answers

Please help me with the run-away cron jobs

I started a cron job on a cluster super computer. I am just a usual user over there and has no root power. The cron job was set by using "crontab -e". It excecutes a perl command every 20 minutes. I could use crontab -l or crontab -r to list or remove the cron job. However, I just found that I... (2 Replies)
Discussion started by: dedema
2 Replies

10. Shell Programming and Scripting

background jobs exit status and limit the number of jobs to run

i need to execute 5 jobs at a time in background and need to get the exit status of all the jobs i wrote small script below , i'm not sure this is right way to do it.any ideas please help. $cat run_job.ksh #!/usr/bin/ksh #################################### typeset -u SCHEMA_NAME=$1 ... (1 Reply)
Discussion started by: GrepMe
1 Replies
Login or Register to Ask a Question