SimplePyScripts icon indicating copy to clipboard operation
SimplePyScripts copied to clipboard

📦 NEW: get cpu process

Open TechWiz-3 opened this issue 3 years ago • 0 comments
trafficstars

In this PR I've added a directory called get_cpu_process

It includes:

  • get_cpu_process.py which contains three functions relating to getting the information on a process.
  • cpu a CLI interface for the get_cpu_process functions which has 3 commands
    1. ./cpu <process> - returns True if the process is running
    2. ./cpu --get-pid <process> - returns the process id of the specified process
    3. ./cpu --run-time <process> - returns how long the specified process has been running

Let me know what you think 👍

TechWiz-3 avatar Jul 03 '22 02:07 TechWiz-3