If I run htop, I see a list of all running processes, and the commands that spawned them.
Is there a way to get the list of running commands from inside Django? I looked at the docs for the OS module, but didn't yet spot a way to do it.
If I run htop, I see a list of all running processes, and the commands that spawned them.
Is there a way to get the list of running commands from inside Django? I looked at the docs for the OS module, but didn't yet spot a way to do it.
python3 /my_directory/my_app/manage.py rssrun --settings=server.settings.prod_cnf. I'd like to load this list within my Django app if possible.htop. I've got a cron job that runs regularly. I want it to check this list to see if it's still running from a previous launch and if so, exit immediately. :)