I have an application that runs fine, with and without '&' when run directly from the terminal. However, if I try to execute it from a shell script, it works only if the trailing '&' is skipped. Thus, I am unable to start this process in background from inside the shell script. <Path to My application> <options> &The application window opens but makes no progress after that.(The application is a modified(by me) version of qemu 0.13.0. When I run a disk image from that in background in a shell script, I get stuck with a black screen)
QEMU do not start when executed in background inside shell script
shell script;qemu
There's no need to background the application with the ampersand when it has a built-in option for doing so.  Such is the case with qemu (unless you've removed it):% qemu-kvm --help | grep daemon-daemonize      daemonize QEMU after initializing