title: execution of the consecutive commands through unix script when the previous one is done
body: <p>i have a unix script in which a command needs to  be executed repeatedly but the command can be run next time only when the previous one have completed successfully. I searched for the command that can tell that the script has finished execution but i couldnt find it. I am new in the unix scripting and started to love unix scripting.</p>