Skip to content

Instantly share code, notes, and snippets.

@zzak
Created July 17, 2010 06:22
Show Gist options
  • Save zzak/479299 to your computer and use it in GitHub Desktop.
Save zzak/479299 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import subprocess
uname = "uname"
uname_arg = "-a"
print "Gathering system information with %s command:\n" % uname
subprocess.call([uname, uname_arg])
diskspace = "df"
diskspace_arg = "-h"
print "Gathering diskspace information %s command:\n" % diskspace
subprocess.call([diskspace, diskspace_arg])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment