I’m trying to run a script, which internally invokes other script
but, the main script should exit after invoking and the invoked script should run independently on the background.
How can i achieve this in shell scripting? or is there any other alternative way to do this?
Regrads,
senny
The
nohupwill ensure that the process keeps running even if the current terminal goes away (for example if you close the window).(Just to make it clear: the “&” puts the other script in the background, which means the first will keep running, and the second script won’t exit when the first one does.)