|
@@ -1,41 +0,0 @@
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-import subprocess as sp
|
|
|
-import platform
|
|
|
-import os
|
|
|
-import sys
|
|
|
-import time
|
|
|
-
|
|
|
-
|
|
|
-start = time.time()
|
|
|
-
|
|
|
-
|
|
|
-print("Python version: %s" %(platform.python_version()))
|
|
|
-
|
|
|
-
|
|
|
-figlet_install = input("Do you have figlet installed on your linux terminal (Y/N)? ")
|
|
|
-
|
|
|
-if figlet_install.upper() == "Y":
|
|
|
- pass
|
|
|
-
|
|
|
-elif figlet_install.upper() == "N":
|
|
|
- print("Installing figlet...")
|
|
|
- os.system("sudo apt-get install figlet")
|
|
|
-
|
|
|
-elif figlet_install.upper() != "Y" and "N":
|
|
|
- sys.exit("Invalid input. Your input must either be Y or N (uppercase is not mandatory).")
|
|
|
-
|
|
|
-
|
|
|
-os.system("figlet %s" %(platform.node()))
|
|
|
-
|
|
|
-
|
|
|
-sp.call("sysinfo.sh")
|
|
|
-
|
|
|
-
|
|
|
-end = time.time()
|
|
|
-
|
|
|
-
|
|
|
-print("Program execution time: %s seconds" %(end - start))
|