SimplePyScripts
SimplePyScripts copied to clipboard
📦 NEW: get cpu process
In this PR I've added a directory called get_cpu_process
It includes:
-
get_cpu_process.pywhich contains three functions relating to getting the information on a process. -
cpua CLI interface for theget_cpu_processfunctions which has 3 commands-
./cpu <process>- returns True if the process is running -
./cpu --get-pid <process>- returns the process id of the specified process -
./cpu --run-time <process>- returns how long the specified process has been running
-
Let me know what you think 👍