FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


os:linux:example: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
os:linux:example:index.html [2019/02/11 00:38]
kurihara
os:linux:example:index.html [2020/02/21 01:18] (current)
kurihara
Line 52: Line 52:
  
 </sxh> </sxh>
 +
 +\\
 +===== TIPS =====
 +==== color ====
 +
 +<sxh python toolbar:false gutter:false>
 +from fabric.colors import *
 +
 +def color():
 +    print 'aaaaa'
 +    print blue('blue') + ' color'
 +    print cyan('cyan') + ' color'
 +    print green('green') + ' color'
 +    print magenta('magenta') + ' color'
 +    print red('red') + ' color'
 +    print white('white') + ' color'
 +    print yellow('yellow') + ' color'
 +    print (red("This sentence is red, except for " +  green("these words, which are green") + "."))
 +</sxh>
 +
 +==== tomcat start ====
 +<sxh python toolbar:false gutter:false>
 +def startTomcat():
 +    run('/etc/init.d/tomcat start < /dev/null > /dev/null 2> /dev/null', pty=False, timeout = 60)
 +</sxh>
 +
  
 \\ \\


os/linux/example/index.html.1549813105.txt.gz · Last modified: 2019/02/11 00:38 by kurihara