Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: How to kill a bash script running as root from a python script?
Post: RE: How to kill a bash script running as root from...

Thanks for the reply menator01... but Gribouillis's suggestion worked perfectly with only 2 lines of code, which is what I was looking for... killing it by using the process name and not having to do ...
jc_lafleur General Coding Help 4 5,862 Jun-26-2020, 10:50 PM
    Thread: How to kill a bash script running as root from a python script?
Post: RE: How to kill a bash script running as root from...

That is what I was attempting to do with this... import psutil # this kills the timelapse.sh script to stop taking pictures (didn't work) PROCNAME = "timelapse.sh" for proc in psutil.process_iter(): ...
jc_lafleur General Coding Help 4 5,862 Jun-26-2020, 10:06 PM
    Thread: How to kill a bash script running as root from a python script?
Post: How to kill a bash script running as root from a p...

Not sure if this is the best place to ask this question, but I've been looking all over Stack Exchange and other forums for the past week and still haven't found a working solution for this. I need t...
jc_lafleur General Coding Help 4 5,862 Jun-26-2020, 09:45 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020