execution of the consecutive commands through unix script when the previous one is done -
i have unix script in command needs executed repeatedly command can run next time when previous 1 have completed successfully. searched command can tell script has finished execution couldnt find it. new in unix scripting , started love unix scripting.
in order command execute after previous 1 has succeeded, need write 2 as:
command1 && command2 to have in loop single command, need check return status of each invocation , exit loop if it's not successful; shortest form should like:
while your_command; :; done you insert sleep instead of noop :.
Comments
Post a Comment