Creating a Schedular to Run the Jobs.

Hi,

I have to create a sheduler to run the shell scripts one by one(dependency).

Suppose i have 10 scripts.
For all the 10 scripts i have a database table containing these scripts_names and status.
Executing the first script.if the first status script is only 'success' then go to next script.
if status of script 'Failed' then wait for to complete the first script.
If user updates the status 'WAIT' in Table then run the first script again like loop.

Can any one help me.Pls

for.... in statement

for loop_variable in argument_list
do
commands
done

########################

while statement

while test_condition_is_true
do
commands
done

########################

Until statement

until test_condition_is_true
do
commands
done

Can any one help me with some sample scripts,Pls?

i bet there are free (as open) complex schedulers.
altho i cant find not even one :confused:
nobody ever made a control-M clone ?!?!?

What have you tried so far? Or do you just want someone here to do all your work?