Hi every one, i am new to shell script. my people given a task to write a shell script that should execute number of shell scripts in that. in that, if any shell script is failed to execute, we have to run the main script again, but the script should start execute from the failed script only..
it is very urgent task ,
Thanks in advance
note: main.csh is main script.. in this main.csh number of script need to execute like one.csh, two.csh, three.csh.. if two.csh fails, if we run main.csh, it should execute two.csh only..
That approach seems a bit strange to me. The script extensions imply you are using the csh shell, but you're running main with plain Bourne sh . And, why are you piping that echo to one.csh ?
If two.csh fails, do you want to run it again immediately, or do you want to finish the main script (i.e. 3,4,5), and then run main again with just two.csh?