Created
February 6, 2013 05:43
-
-
Save abaez/4720642 to your computer and use it in GitHub Desktop.
Simple OS detail for a certain someone...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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