10
2
I'm trying to create a script which starts some programs
startup.sh
knetworkmanager
emesene
keepassx
The problem is that when I run the script, it only starts knetworkmanager. This is because it'll start it, then wait until it's finished. How can I start a program without waiting for it? I don't think I can just add "&" after each command, because all processes will still be killed when the script is finished.
Reading again, it's ambiguous whether to OP is exiting the calling shell or not. He only mentions exiting the script, not exiting the shell or the terminal. – Adam Bellaire – 2009-09-09T20:06:59.640
reading my answer again, you'll notice that I did say "when the shell that runs the script exits". Assuming this shell has its own virtual terminal (not a subshell or something) this is correct. – Kim – 2009-09-09T20:29:12.277
@Kim: That's true. Your answer is fine, I'm just sure if the OP is closing the calling shell or not. – Adam Bellaire – 2009-09-09T20:55:22.037