job run before schedule on crontab


 
Thread Tools Search this Thread
Operating Systems AIX job run before schedule on crontab
# 1  
Old 12-13-2011
job run before schedule on crontab

Guys, yesterday i just make a script with email as a result and put them into crontab, it will execute on 23.33.
Today, i recieved email from system twice as result the script. the first email send at 23.02 and the second send at 23.33
how is the script execute two times ? the first job run before the schedule ? please help me! Smilie
# 2  
Old 12-13-2011
Post the crontab entry for the script and post your script. Posting relevant data will help people respond to posts better Smilie
# 3  
Old 12-13-2011
Quote:
Originally Posted by dude2cool
Post the crontab entry for the script and post your script. Posting relevant data will help people respond to posts better Smilie
the crontab entry is
33 23 * * * /usr/local/bin/myscript.sh.

It should run only on 23:33, is it right ?
# 4  
Old 12-13-2011
cron entry looks correct.

I would look into cron log. Can you grep myscript.sh from your cron log and post the lines here?
# 5  
Old 12-13-2011
[QUOTE=dude2cool;302581669]cron entry looks correct.

dude2cool,
here is cunk of cron log
Code:
root : CMD ( /usr/sbin/dumpctrl -k >/dev/null 2>/dev/null ) : PID ( 19005596 ) : Tue Dec 13 23:00:00 2011
Cron Job with pid: 19005596 Successful
root : CMD ( /usr/sbin/dumpctrl -k >/dev/null 2>/dev/null ) : PID ( 15335536 ) : Tue Dec 13 23:05:00 2011
Cron Job with pid: 15335536 Successful
root : CMD ( /usr/sbin/dumpctrl -k >/dev/null 2>/dev/null ) : PID ( 15663336 ) : Tue Dec 13 23:10:00 2011
Cron Job with pid: 15663336 Successful
root : CMD ( /usr/sbin/dumpctrl -k >/dev/null 2>/dev/null ) : PID ( 19398834 ) : Tue Dec 13 23:15:00 2011
Cron Job with pid: 19398834 Successful
root : CMD ( /usr/sbin/dumpctrl -k >/dev/null 2>/dev/null ) : PID ( 20709424 ) : Tue Dec 13 23:20:00 2011
Cron Job with pid: 20709424 Successful
root : CMD ( /usr/sbin/dumpctrl -k >/dev/null 2>/dev/null ) : PID ( 12648500 ) : Tue Dec 13 23:25:00 2011
Cron Job with pid: 12648500 Successful
root : CMD ( /usr/sbin/dumpctrl -k >/dev/null 2>/dev/null ) : PID ( 13303868 ) : Tue Dec 13 23:30:00 2011
Cron Job with pid: 13303868 Successful
root : CMD ( /usr/local/bin/myscript.sh ) : PID ( 15663136 ) : Tue Dec 13 23:33:00 2011
Cron Job with pid: 15663136 Successful

there are not myscript.sh running at 23:02...


Moderator's Comments:
Mod Comment Please use code tags!

Last edited by zaxxon; 12-14-2011 at 05:36 AM.. Reason: code tags, see PM
# 6  
Old 12-13-2011
Looking at the logs, so cron definitely did not run it. See what happens tonight.
This User Gave Thanks to dude2cool For This Post:
# 7  
Old 12-13-2011
Btw, thanks a lot for your help
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How do you schedule a job to run at 3:45 am every morning in UNIX?

give the suggestion (3 Replies)
Discussion started by: sonu pandey
3 Replies

2. Shell Programming and Scripting

How do you schedule a job to run at 3:45 am every morning?

help me (2 Replies)
Discussion started by: sonu pandey
2 Replies

3. Shell Programming and Scripting

Schedule Job Fortnightly (FRI) in Crontab

Solaris platform. How can I schedule crontab job every 2 weeks and the job to be scheduled on Fri? (7 Replies)
Discussion started by: KhawHL
7 Replies

4. Shell Programming and Scripting

To Run a job every hour without using crontab

Hi, Can anyone help me in finding how to run a specific job every hour without using crontab. Say for example i need to run a command ps -aux in the starting of every hour.. (3 Replies)
Discussion started by: glv
3 Replies

5. AIX

Schedule Job

how to schedule a job in aix, pls explain with cmd (1 Reply)
Discussion started by: udtyuvaraj
1 Replies

6. Shell Programming and Scripting

Schedule a job using Crontab

I would like to execute my script at 17.30 and 23.00 using crontab, could anybody help me out!! Thanks in Advance!! (1 Reply)
Discussion started by: jatanig
1 Replies

7. UNIX for Dummies Questions & Answers

crontab does not run "root" job

hi, I've read different posts regarding crontab but none helped out...the shell scrip that I want to run through crontab gets run through crontab when I use the following crontab statement: 13 17 * * * /usr/net/gcc/DBdrop.sh > /usr/net/gcc/DBdrop.log 2>&1 but it does not run when I scheduel... (2 Replies)
Discussion started by: linux0004
2 Replies

8. Shell Programming and Scripting

Crontab job to run every sunday

Hello, I wanted to run one of my shell script for every sunday at 5PM. Here is the crontab entry i am using.. 00 17 * * 0 /inventory/update.sh > /inventory/update.log 2>&1 The job is not kicking on sunday at the specified time.. Am i missing anthing? Any help is appreciated... (2 Replies)
Discussion started by: govindts
2 Replies

9. UNIX for Advanced & Expert Users

Run crontab job problem

I hv a crontab job (script) that can be run normally , now I try to run it on the shell but can't be run , can advise what is difference between run a script on crontab and run it manually ? is it the difference of system enviornment ?thx I tried to fix it by below method , I write a script... (3 Replies)
Discussion started by: ust
3 Replies

10. Solaris

Schedule to run every 3 minutes - CRONTAB

Hello all, I want to run a script every 3 minutes in os level and to send mail. I scheduled in crontab as 3 * * * * /mnt1/monitorscripts/testdbstart.sh I got mail every one hour and I confirmed that the script is running every 1 hour which doesn't meet my requirment. Where I am... (4 Replies)
Discussion started by: prashanth_gs
4 Replies
Login or Register to Ask a Question