klenwell information services : DevFabric

Revision history for DevFabric


Revision [2299]

Last edited on 2012-09-10 08:51:07 by KlenwellAdmin
Additions:
return to DevPython


Revision [2292]

Edited on 2012-09-07 11:48:26 by KlenwellAdmin
Additions:
with settings(user=user, host_string=host, warn_only=True):
run(some_command)


Revision [2291]

Edited on 2012-09-07 11:46:50 by KlenwellAdmin
Additions:
FabricKillProcess
===Set user/host dynamically and ignore errors===
%%(python)
%%
===Kill Remote Process===
%%(python)
def kill_remote_process(keyword):
"""kill process; ref: http://stackoverflow.com/a/3510850/1093087"""
cmd_f = """kill -9 $(ps aux | grep '%s' | grep -v grep | awk '{print $2}')"""
cmd = cmd_f % (keyword)
run(cmd)
%%


Revision [2178]

The oldest known version of this page was created on 2012-06-13 09:57:37 by KlenwellAdmin