Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions powergraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ def run_ipmi(command):
print "\nExecution cancelled. Bye!"
sys.exit(1)

def cmd_exists(command):
subp = subprocess.call("type " + command, shell=True,
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
return subp == 0

def main():
"""
Expand Down