[clug] Launch gnome-terminal to launch daemon process
David Deaves
David.Deaves at dd.id.au
Tue Aug 25 03:18:55 UTC 2015
Most likely method causing your python to exit when the shell does is it
receiving a SIGHUP when the terminal exits. You should be able to handle this
by adding this command before the python command
trap '' 1
may even want to ignore SIGINT also so
trap '' 1 2
Another possibility is some IO to the pseudo terminal now failing when it
goes away - this is less likely to be your issue and normally has the opposite
effect, calling programs don't exit/carry on until the child program exits.
exec <&- # Will close STDIN
exec >&- 2>&- # Will close STDOUT - though as you want to see errors from python you probably don't want this
Dave !
More information about the linux
mailing list