Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-11-2016, 12:34 PM   #1
ASF Studio
LQ Newbie
Registered: Dec 2016
Posts: 1

Rep: Reputation: Disabled
Work with setsid to open a session and close it correctly


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
Old 12-11-2016, 03:48 PM   #2
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
What have you tried so far?

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
K3b and Close CD\DVD session. hack3rcon Linux - Software 2 09-14-2016 12:54 AM
[SOLVED] Close session with Delete key lucmove Programming 4 12-17-2011 02:44 PM
Does open process continue to work if Putty session is closed? davidlu766 Linux - Software 11 04-15-2010 04:47 PM
How can I close my x session muasif80 Linux - Newbie 7 10-03-2008 07:28 PM
How to run a program in an ssh session that will run after you close out the session? dr_zayus69 Linux - Networking 5 03-05-2006 07:15 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:49 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration