LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Work with setsid to open a session and close it correctly (https://www.linuxquestions.org/questions/linux-newbie-8/work-with-setsid-to-open-a-session-and-close-it-correctly-4175595233/)

ASF Studio 12-11-2016 12:34 PM

Work with setsid to open a session and close it correctly
 
Hello,

I would like to create the following bash script:

-- run a python script with setsid
-- python may or may not fail with exception
-- check if all of the group processes were terminated correctly
-- if not, kill the remaining processes

Any idea how can I do that?

Thanks a lot

c0wb0y 12-11-2016 03:48 PM

What have you tried so far?

Quote:

-- run a python script with setsid
Maybe you mean setuid/setgid?


All times are GMT -5. The time now is 12:15 PM.