cron jobs


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting cron jobs
# 1  
Old 10-06-2010
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
Code:
23,29 18 * * * /export/home/inrvgo/thelak/China.sh

its getting exec properly

please help on this

Code:
# Crontab for Hourly Update.
00,05,10 06 * * * /export/home/inrvgo/thelak/China.sh

Waiting for the earliest responseSmilie


thanks in advance.


Moderator's Comments:
Mod Comment Having so many posts you should be familiar using code tags. You got a PM.

Last edited by zaxxon; 10-06-2010 at 09:39 AM..
# 2  
Old 10-06-2010
hi,

Format of crontab: Minutes Hour DayofMonth Month Day

For everyhour the mins has to be zero and hour is every hour something like this:
Code:
0 * 6 10 wed china.sh

hope it works!
# 3  
Old 10-06-2010
00,05,10 should be 0,5,10.

Try that and let us know.

---------- Post updated at 05:42 ---------- Previous update was at 05:41 ----------

dragon - you can concatenate minute values (or any value) with commas.
# 4  
Old 10-06-2010
Is the problem:

a) The cron not running at the correct time. If so, what is the correct time required?

b) Both crons failing. If so, the error should be in the mail messages for the owner of the cron (or root mail if it is a system cron).

c) One cron failing and one cron working. If so, can we see any error messages and the contents of the script?
This User Gave Thanks to methyl For This Post:
# 5  
Old 10-07-2010
i left for the day eventhough

the system errors in the root mail as

file not found:could not open the txt file ...
mean while without changing any thing in the files i simply changed crontab entry by changing the time then its running

Hope it will gives u clear picture

---------- Post updated 10-07-10 at 11:46 AM ---------- Previous update was 10-06-10 at 08:32 PM ----------

export/home/inrvgo/thelak/SQL.sh[2]: sqlplus: not found.
A file or directory in the path name does not exist.
/export/home/inrvgo/thelak/China.sh[7]: /export/home/inrvgo/thelak/Daily_Check10-07-2010-05.txt: 0403-016 Cannot find or open the file.

its displaying the above message note(only at the time stamp 00,05,10 06 ***)

Please help on this tomarrow i have to move this to production

---------- Post updated at 01:34 PM ---------- Previous update was at 11:46 AM ----------

any one help on above
# 6  
Old 10-07-2010
Updates like the last one you posted are considered as "Bumping" read the rules again!

---------- Post updated at 10:13 ---------- Previous update was at 10:09 ----------

There are many things by the look at the last submission, like are you sure you gave us all the information - We dont know what is in your script!
Is it calling sqlplus? In that case you havent set the evironment properly (test: does the script work in interactive mode e.g. when I execute it, and not in batch mode?...)
# 7  
Old 10-07-2010
HI,
I executed in interactive mode its working properly and i'am receving the mail.
I executed in batch mode and its also working fine with (21 18 * * * <File path>
I Executed in batch mode like (50 05 * * * <file path>) with this its displaying the above mentioned error
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Cron Jobs

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

2. Red Hat

Cron jobs

I'm running cronjobs on a redhat 5.X. Cronjobs are getting failed frequently so how to find the root cause (2 Replies)
Discussion started by: karthik9358
2 Replies

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

4. Shell Programming and Scripting

Help with cron jobs

Hi Frenz, How do we get a cron job running in background to foreground ? (3 Replies)
Discussion started by: mkalase
3 Replies

5. Linux

Cron jobs

Hi, I am a Linux administrator (newbie) in my company. The distro being used in the servers here is Centos 5.3 Just need to know, as a Linux administrator is it better for me to use /etc/crontab to set my cron jobs. I do not want to use the crontab -e to schedule my cron jobs. That means... (1 Reply)
Discussion started by: anaigini45
1 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. Solaris

cron jobs

how to Put a cron entry which should be same script triggered on every Saturday and 1st of every month at 01.00 GMT. 0 2 1 * 6 --( At 2.00 GMT every sat & on 1st of every month) the above syntax is correct? Thanks (1 Reply)
Discussion started by: kurva
1 Replies

8. Solaris

Cron Jobs

I'm trying to run cron jobs to start any inhibited processes after a system reboot. I can schedule th cron, but i'm confused as to how to incorporated the reboot, since reboot is scheduled at different times, once every month. How can I write this to start every 15 min after after a reboot ... (2 Replies)
Discussion started by: Remi
2 Replies

9. UNIX for Advanced & Expert Users

cron jobs

I need to monitor my cron jobs with another unix machine since occasionally the cron will go down on the main server but there are no errors. Can anyone help with a script to write to use the cron on the back up machine to monitor the main server? I am using SCO and the cron jobs have been... (3 Replies)
Discussion started by: rmarral
3 Replies

10. UNIX for Dummies Questions & Answers

CRON Jobs

Hi, I am a total newbie to all things Unix. I've worked out I need to set up something that will allow me to automatically backup a DB for me, the DB is for a foum system I run. Now, I've only found out I need to use telnet for this, and worked out hwo to log into telnet today. From here... (4 Replies)
Discussion started by: eludlow
4 Replies
Login or Register to Ask a Question

Featured Tech Videos