Created
February 2, 2012 16:08
-
-
Save ers81239/1724261 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
run("if [ `ps ax | grep -c procname` = '2' ]; then echo \"Fproc appears to be running on `hostname`.\"; else echo \"FCAUTION: proc failure on `hostname`.\"; fi;", pty=False) | |
run("if [ `ps ax | grep -c procname` = '2' ]; then echo \"Tproc appears to be running on `hostname`.\"; else echo \"TCAUTION: proc failure on `hostname`.\"; fi;", pty=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment