NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Problems with spawning windows
On Wed, 26 May 2021, Jason Mitchell wrote:
testwin.sh opens an xterm and has the xterm run testwin2.sh. testwin2.sh
then runs testwin3.sh which opens another xterm running rinetd.sh
The problem is when testwin2.sh finishes the windows it spawned close as
well. However, if I just run testwin2.sh from the command line this doesn't
happen.
There is a poorly-documented difference in behavior between
interactive vs. non-interactive shells, and how they handle
backgrounded scripts, that might be at issue here.
Basically, non-interactive shells terminate backgrounded programs
when they exit (interactive shells do not) and so those programs
need to be run with "nohup" to protect them.
I'm sure kre@ will be able to quote chapter and verse here.
-RVP
Home |
Main Index |
Thread Index |
Old Index