Tag: execute command after pid
-
/usr/local/bin/waitpid
A quick script to wait for a certain pid, then once that quits, execute a command. You may ask, why not just do command1 && command2 ? Well, if command1 exits with a non-zero exit status value, command2 will not get executed. Hence, I’ve brewed a quick script for this purpose. File: /usr/local/bin/waitpid #!/bin/sh #…