Sponsored Content
Top Forums Shell Programming and Scripting cron job issue..i hav read the basic threads already... Post 302364850 by oracle.test2 on Saturday 24th of October 2009 08:00:40 AM
Old 10-24-2009
Oct 24 14:01:01 gofenetre crond[11563]: (root) CMD (run-parts /etc/cron.hourly)
Oct 24 14:01:01 gofenetre crond[11564]: (root) CMD (/bin/backup36N)
Oct 24 15:01:01 gofenetre crond[11899]: (root) CMD (run-parts /etc/cron.hourly)
Oct 24 15:28:11 gofenetre crontab[12377]: (root) BEGIN EDIT (root)
Oct 24 15:29:45 gofenetre crontab[12377]: (root) REPLACE (root)
Oct 24 15:29:45 gofenetre crontab[12377]: (root) END EDIT (root)
Oct 24 15:30:01 gofenetre crond[8819]: (root) RELOAD (cron/root)
Oct 24 15:30:01 gofenetre crond[12408]: (root) CMD (/bin/backup36N)


this is last entry for the cron job set
it shows that the job is taking the script at 14:01 hrs
Later i made this modification to my cron job

30 09 * * 6 /bin/backup36M
30 15 * * 6 /bin/backup36N
20 18 * * 6 /bin/backup36E

and the job executed well at 15:30 hrs, giving me the backup of sepcified time, if there wud b any issue of environment variable or anything else, then it shud not hav been executed...
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Issue with cron job

Hi, I have a script which I am able to run from command line. When I put this in cron, it fails and gives the following message: ld.so.1: /d00/documentum/product/5.2.5/bin/dmbasic: fatal: libdmcl40.so: open failed: No such file or directory The ksh script looks like this: # Set this... (1 Reply)
Discussion started by: nattynatty
1 Replies

2. Shell Programming and Scripting

Issue with cron job -Please help

Hi , I have an issue with cron job that i have scheduled today. The problem is that when i run this script in command prompt it work good giving me the desired results but if i schedule this to run using cron job it failes giving a "syntax error in line 11 :$"..... Can anyone look into this and... (6 Replies)
Discussion started by: bsandeep_80
6 Replies

3. Solaris

cron job starts new cron proccess

I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies

4. UNIX for Dummies Questions & Answers

Cron job issue

This is regarding my cron job. My cron entry 30 * * * 1-5,0 /work1/informix/sample/script1.sh 31 * * * 1-5,0 /work1/informix/sample/script2.sh Every 30 mins script1.sh is run. (mon thru friday and sunday) Every 30 mins script2.sh is run. (mon thru friday and sunday) This is based on the... (3 Replies)
Discussion started by: kenkanya
3 Replies

5. Shell Programming and Scripting

cron job issue

Hi , I want to run script every minute so i added . cron entry as below usning crontab -e looks like */1 * * * * sh /home/sai/http_sim/http_start.sh but cron job is not running ? any way to start the cron or something ? Thanks, Raghavendra (2 Replies)
Discussion started by: raghavendra.nsn
2 Replies

6. Shell Programming and Scripting

Issue with svn update using cron job.

I want to update svn code using a nightly job using cron, i have created a job in cron as, 30 17-19 * * 1-5 /home/saprab/svnUpdate.sh <branch> <svnusername> <svnpassword> >> <logfile> 2>&1 svnUpdate.sh : =============== #!/bin/bash branch=$1 svnuser=$2 svnpass=$3 cd ${branch}... (2 Replies)
Discussion started by: bhavesh.sapra
2 Replies

7. Shell Programming and Scripting

Commented cron job -- cron monitoring

Hi I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !! (2 Replies)
Discussion started by: netdbaind
2 Replies

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

9. UNIX for Beginners Questions & Answers

Cron Job Issue

Dear Members Seeking you help on my issue. this script need to run on every end of month.i configured as below. but it runs everyday. why 0 9 28-31 * * ] && /usr/bin/bash /u01///scripts/e.sh (3 Replies)
Discussion started by: ded325
3 Replies

10. UNIX for Beginners Questions & Answers

Cron Job Issue

My Friends I want to run a script only at the end of month.but i tried below cront entry its not working. pls help 0 9 28-31 ] && /usr/bin/bash /u01/app/scripts/CX-eom.shOs Details: AIX 7.1.0.0 Please use CODE tags as required by forum rules! (5 Replies)
Discussion started by: ded325
5 Replies
CRON(8) 						    BSD System Manager's Manual 						   CRON(8)

NAME
cron -- daemon to execute scheduled commands (Vixie Cron) SYNOPSIS
cron [-s] [-o] [-x debugflag[,...]] DESCRIPTION
The cron utility is launched by launchd(8) when it sees the existence of /etc/crontab or files in /usr/lib/cron/tabs. There should be no need to start it manually. See /System/Library/LaunchDaemons/com.vix.cron.plist for details. The cron utility searches /usr/lib/cron/tabs for crontab files which are named after accounts in /etc/passwd; crontabs found are loaded into memory. The cron utility also searches for /etc/crontab which is in a different format (see crontab(5)). The cron utility then wakes up every minute, examining all stored crontabs, checking each command to see if it should be run in the current minute. When executing commands, any output is mailed to the owner of the crontab (or to the user named in the MAILTO environment variable in the crontab, if such exists). Additionally, cron checks each minute to see if its spool directory's modification time (or the modification time on /etc/crontab) has changed, and if it has, cron will then examine the modification time on all crontabs and reload those which have changed. Thus cron need not be restarted whenever a crontab file is modified. Note that the crontab(1) command updates the modification time of the spool directory whenever it changes a crontab. Available options: -s Enable special handling of situations when the GMT offset of the local timezone changes, such as the switches between the standard time and daylight saving time. The jobs run during the GMT offset changes time as intuitively expected. If a job falls into a time interval that disappears (for example, during the switch from standard time) to daylight saving time or is duplicated (for example, during the reverse switch), then it is handled in one of two ways: The first case is for the jobs that run every at hour of a time interval overlapping with the disappearing or duplicated interval. In other words, if the job had run within one hour before the GMT offset change (and cron was not restarted nor the crontab(5) changed after that) or would run after the change at the next hour. They work as always, skip the skipped time or run in the added time as usual. The second case is for the jobs that run less frequently. They are executed exactly once, they are not skipped nor executed twice (unless cron is restarted or the user's crontab(5) is changed during such a time interval). If an interval disappears due to the GMT offset change, such jobs are executed at the same absolute point of time as they would be in the old time zone. For example, if exactly one hour disappears, this point would be during the next hour at the first minute that is specified for them in crontab(5). -o Disable the special handling of situations when the GMT offset of the local timezone changes, to be compatible with the old (default) behavior. If both options -o and -s are specified, the option specified last wins. -x debugflag[,...] Enable writing of debugging information to standard output. One or more of the following comma separated debugflag identifiers must be specified: bit currently not used ext make the other debug flags more verbose load be verbose when loading crontab files misc be verbose about miscellaneous one-off events pars be verbose about parsing individual crontab lines proc be verbose about the state of the process, including all of its offspring sch be verbose when iterating through the scheduling algorithms test trace through the execution, but do not perform any actions FILES
/usr/lib/cron/tabs Directory for personal crontab files SEE ALSO
crontab(1), launchctl(1), crontab(5), launchd.plist(5), launchd(8) AUTHORS
Paul Vixie <paul@vix.com> BSD
June 17, 2007 BSD
All times are GMT -4. The time now is 08:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy