Putting dependency among cron jobs

Hallo All ,
Can we make the cron jobs dependent on previous job's status .

You could put a wrapper around the script that

a) checks the previous exit_code in a file and does something

b) runs the original task

c) stores the exit code in a file

Even I need to set up some dependency in the cron.
Can some one please help me in providing a sample code.

Thanks
Shash

Hi,
Sometime I used the at job to start jobs scheduled.
It is simple to start the next job with an other argument.

Simple create your script like you want.
And insert depending on thinks happed the start of the scheduled script
with other arguments or maybe one hour later!

This is the code you can insert inside your script:
/usr/bin/at now + 30 minutes < /export/home/start_the_script last_run_with_mistake 2> /export/home/log_data

The next time the script starts in 30 minutes with the attribute "last_run_with_mistake"

Be sure that you start the at job inside the start scripts to ensure that after a reboot the job start again.

I hope this can help you?

Best regards
joerg