FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
os:windows:winope:index.html [2018/02/01 22:55] kurihara created |
os:windows:winope:index.html [2018/02/22 23:29] (current) kurihara [How to Check to Use Fabric in Windows] |
||
---|---|---|---|
Line 1: | Line 1: | ||
[[: | [[: | ||
- | ====== Windows Operation (winope.py)===== | + | ====== Windows Operation |
$FHHOME/ | $FHHOME/ | ||
Line 7: | Line 7: | ||
\\ | \\ | ||
- | ===== Operation ===== | + | ===== Operation |
<sxh bash toolbar: | <sxh bash toolbar: | ||
Line 15: | Line 15: | ||
</ | </ | ||
- | ==== Ref. Remote Shell Commands | + | \\ |
+ | ==== How to Check to Use Fabric in Windows ==== | ||
+ | <sxh bash toolbar: | ||
+ | $ ssh user01@xx.xx.xx.xx hostname | ||
+ | $ ssh user01@xx.xx.xx.xx " | ||
+ | </ | ||
+ | |||
+ | \\ | ||
+ | ==== Fabric one-line Task Examples | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
$ fab -H xx.xx.xx.xx -u USER -p PASSWORD --shell=" | $ fab -H xx.xx.xx.xx -u USER -p PASSWORD --shell=" | ||
Line 27: | Line 35: | ||
<sxh python toolbar: | <sxh python toolbar: | ||
- | import sys | + | import sys, os |
from fabric.api import * | from fabric.api import * | ||
from fabric.contrib import files | from fabric.contrib import files | ||
Line 43: | Line 51: | ||
# | # | ||
- | # winope.powershell: | + | # winope.powershell: |
# | # | ||
@task | @task | ||
def powershell(cmd): | def powershell(cmd): | ||
- | """ | + | """ |
run(" | run(" | ||
# | # | ||
- | # winope.put: | + | # winope.put:local, remote |
# | # | ||
@task | @task | ||
Line 60: | Line 68: | ||
# | # | ||
- | # winope.get: | + | # winope.get:remote, local |
# | # | ||
@task | @task |
My Sites
SNS
Copyright (c) 2025 FastHandle - IT Operations Examples All Rights Reserved.