FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


os:linux:ope:index.html



Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
os:linux:ope:index.html [2018/02/22 23:23]
kurihara
os:linux:ope:index.html [2018/03/14 00:33]
kurihara
Line 31: Line 31:
 from fabric.contrib import files from fabric.contrib import files
 from fabric.operations import open_shell from fabric.operations import open_shell
 +from datetime import datetime
  
 FHHOME=os.environ["FHHOME"] FHHOME=os.environ["FHHOME"]
Line 75: Line 76:
 def sudo_vi(file): def sudo_vi(file):
     """fab auth.pro ope.vi:/etc/hosts"""     """fab auth.pro ope.vi:/etc/hosts"""
-    open_shell("sudo_vi %s && exit" % (file))+    open_shell("sudo vi %s && exit" % (file))
  
  


os/linux/ope/index.html.txt · Last modified: 2019/02/11 00:41 by kurihara