Is there a way I can execute an application from a shell script but not create another process. I want it to look like one process only. It doesn't matter whether my shell script is replaced by a new process or whether it will continue after a called application ends.
This should also solve my previous question: https://askubuntu.com/questions/247632/is-there-a-way-to-associate-additional-application-launcher-with-an-app
Thank you very much for your help.
Ubuntu – Run program from a shell script but behave as one process only
bashprocessprogramming
Best Answer
You can use the
exec
command:Example:
As you can see, the subshell is replaced by
echo
.