Skip to content

Instantly share code, notes, and snippets.

@abaez
Created February 6, 2013 05:43
Show Gist options
  • Save abaez/4720642 to your computer and use it in GitHub Desktop.
Save abaez/4720642 to your computer and use it in GitHub Desktop.
Simple OS detail for a certain someone...
#!/usr/bin/env python
#from os import *
import os
def getOS():
user = [ os.getlogin(), os.geteuid(), os.ctermid()]
running = [os.ctermid(), os.uname()]
[print(x) for x in [user, running]]
os.system("whatis qtile; whereis qtile")
if __name__ == '__main__':
begin = input("You are read to begin?\ny or n\n")
if begin == "y": getOS()
else: print("goodbye")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment