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) |
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
#!/usr/bin/env python | |
#fabric parallel test file | |
from fabric.api import * | |
@parallel | |
def parFunc(): | |
print env.host | |
@serial |
NewerOlder