Please help me with the run-away cron jobs


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Please help me with the run-away cron jobs
# 1  
Old 09-12-2007
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 could not see the cron job anymore: "crontab -l" or "crontab -e" shows that I have no cron jobs setup. Then I noticed the old cron job is still running: it excecutes the perl command every 20 minutes. The perl command runs fast and there is nothing hanging over. Now, the "crontab -r" does not remove the cron job at all. I can still add new crontab jobs by using "crontab -e", but the old cron job seems to be out of my control.

How can I stop the cron job like this? I know I can change the conrtol file to make the old cron job do nothing, but I still prefer to get rid of it. Any thought on this? Thanks.
# 2  
Old 09-12-2007
Quote:
Originally Posted by dedema
I know I can change the conrtol file to make the old cron job do nothing, but I still prefer to get rid of it.
I thought you said that "crontab -l" showed nothing?

What can you see in /var/cron/tabs? Is the file with your username non-existant or zero length?

Are you refering to a small wrapper script you use to call the perl program?

I suggest you comment out the call to the perl program or even rename the wrapper. Once you rename, check your mail on the box to see if you start getting mail about not being able to run your job.

If you do, then send that mail plus a listing from "crontab -l" to your administrator.
# 3  
Old 09-13-2007
there is no such a folder "/var/cron/tabs".

yes, I used a wrapper to call the perl program. I have changed the wrapper to make the old cron job do nothing.

I tried to rename the wrapper, but I kept receiving emails complaining about cron daemon failure "No such file or directory".

I guess I have to aks the admin to help me with it.

Thanks.
 
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. 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

10. Linux

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. (4 Replies)
Discussion started by: robertsnoog
4 Replies
Login or Register to Ask a Question