FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


os:linux:get: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
os:linux:get:index.html [2018/03/14 00:32]
kurihara
os:linux:get:index.html [2019/02/11 00:40] (current)
kurihara
Line 12: Line 12:
 $ fab -l |grep get $ fab -l |grep get
  
-$ fab -H $H auth.pro  get.xxxx+$ fab -H $H   get.xxxx
 </sxh> </sxh>
  
Line 76: Line 76:
     outfile = "systeminfo.%s.%s"  % (hostname, date)     outfile = "systeminfo.%s.%s"  % (hostname, date)
    
-    local("test -d output/%s || mkdir output/%s"    % (yearmonth, yearmonth))+    local("test -d %s/output/%s || mkdir %s/output/%s"  % (FHHOME, yearmonth, FHHOME, yearmonth))
     run("test -d scripts || mkdir scripts")     run("test -d scripts || mkdir scripts")
 +    run("test -d output || mkdir output")
    
     put("%s/scripts/systeminfo.sh" % FHHOME, "scripts/systeminfo.sh", mode=0755)     put("%s/scripts/systeminfo.sh" % FHHOME, "scripts/systeminfo.sh", mode=0755)
-    sudo("scripts/systeminfo.sh 1>output/%s  2>/dev/null"   % (outfile)) +    sudo("scripts/systeminfo.sh  1>output/%s  2>/dev/null"   % (outfile)) 
-    get("output/%s", "output/%s/%s"  % (outfile, yearmonth, outfile))+    get("output/%s", "%s/output/%s/%s"  % (outfile, FHHOME, yearmonth, outfile))
    
 </sxh> </sxh>


os/linux/get/index.html.1520955131.txt.gz · Last modified: 2018/03/14 00:32 by kurihara