Skip to content

Instantly share code, notes, and snippets.

@ers81239
Created February 2, 2012 16:08
Show Gist options
  • Save ers81239/1724261 to your computer and use it in GitHub Desktop.
Save ers81239/1724261 to your computer and use it in GitHub Desktop.
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