Skip to content

Instantly share code, notes, and snippets.

@NamPNQ
Created December 30, 2015 03:57
Show Gist options
  • Select an option

  • Save NamPNQ/7330e124daafaaa2bfbe to your computer and use it in GitHub Desktop.

Select an option

Save NamPNQ/7330e124daafaaa2bfbe to your computer and use it in GitHub Desktop.
from fabric.api import run
def check_status():
run('df -h')
run('service --status-all | grep running')
# How to use
# pip install fabric
# fabric check_status -H [email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment