I would like to run a program from the bash shell. When the program runs, it dominates the entire shell, so I would like to start a new shell and run the program from there. Currently I am doing:
gnome-terminal -x "cd Dropbox; program_name"
However that give me the error Failed to execute the child process, no such file or directory. I believe thats because the new terminal has no time to initialize. How can I fix this?
I admit this doesn’t really answer your question, but I think it solves your problem.
Why not just use
&to send it to the background. You can see if it’s still running withjobsand bring it back to the foreground withfg, you can also send it back to the background, by first stopping it with Ctrl+Z thenbgExample to try.