Update shell.py

This commit is contained in:
JaydenMW 2021-02-23 15:03:11 +00:00
parent 02f29e55cf
commit bb8e0f52e5
1 changed files with 10 additions and 13 deletions

View File

@ -6,8 +6,8 @@ import socket
RAM = psutil.virtual_memory()
CPU = platform.processor()
OS = os_name = platform.system()
OS = platform.system()
HOST = socket.gethostname()
VER = "PCLISH v0.0.5a-hotfix2a"
PROMPT = "shell@localhost$ "
@ -36,7 +36,7 @@ def execute_command(command):
try:
subprocess.run(cmd.strip().split())
except Exception:
print("pclish: command not found: {}".format(cmd.strip()))
print("pclish: command not found, run the help command for a list of commands: {}".format(cmd.strip()))
os.dup2(s_in, 0)
os.dup2(s_out, 1)
@ -84,19 +84,16 @@ def pclish_mkdir():
os.mkdir(DIR)
def pclish_system():
print("System: XCU Python Based Shell Env")
print("RAM:")
print(RAM)
print("CPU:")
print(CPU)
print("OS:")
print(OS)
print("Shell:")
print(VER)
print("HOSTNAME:" + HOST)
print("System: PCLISH SUBSYSTEM")
print("RAM:" + RAM)
print("CPU:" + CPU)
print("OS:" + OS)
print("SHELL:" + VER)
def pclish_shtdwnsubsys():
print("Shutting Down XCU Python Based Shell Env")
print("Exiting to..." + OS)
exit()
def main():