FastHandle - IT Operations Examples

FastHandle is fast operation tools for infrastructure configurations and tests.

User Tools

Site Tools


operation:one-line-task.html



Differences

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

Link to this comparison view

Both sides previous revision Previous revision
operation:one-line-task.html [2020/01/23 02:14]
kurihara
operation:one-line-task.html [2020/01/23 02:18] (current)
kurihara
Line 71: Line 71:
 $ fab -H $H  -- sudo sed -i s/192.168.100.10/192.168.50.10/g /etc/hosts $ fab -H $H  -- sudo sed -i s/192.168.100.10/192.168.50.10/g /etc/hosts
  
-$ fab -H $H  -- "sudo bash -c 'sed s/192.168.100.10/192.168.50.10/g /etc/hosts > /etc/hosts.`date -d +%Y%m%d`  '" +$ fab -H $H  -- sudo "bash -c 'sed s/192.168.100.10/192.168.50.10/g /etc/hosts > /etc/hosts.`date -d +%Y%m%d`  '" 
-$ fab -H $H  -- "sudo bash -c 'echo "any host 192.168.100.1 gw 192.168.0.5" >> /etc/sysconfig/static-routes  '"+$ fab -H $H  -- sudo "bash -c 'echo "any host 192.168.100.1 gw 192.168.0.5" >> /etc/sysconfig/static-routes  '"
 </sxh> </sxh>
  


operation/one-line-task.html.1579713253.txt.gz · Last modified: 2020/01/23 02:14 by kurihara