From bb8e0f52e50f3e817c480322548bdfe81e8914cc Mon Sep 17 00:00:00 2001 From: JaydenMW Date: Tue, 23 Feb 2021 15:03:11 +0000 Subject: [PATCH] Update shell.py --- shell.py | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/shell.py b/shell.py index ce2c0c8..2c00ef4 100644 --- a/shell.py +++ b/shell.py @@ -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():