Nohup clarification

I have Main.sh script which will call 3 scripts as shown below.

nohup script1.sh &
nohup script2.sh &
nohup script3.sh &

Clarifification:
Is all 3 scripts will be triggered at a time or it will trigger one by one( script1.sh ----> script2.sh ---> script3.sh )?

The answer to your question has nothing to do with nohup ; using ampersand ( & ) to terminate your commands causes each of those commands to be run asynchronously in the background. If you run the 1st command asynchronously, the second command is free to start running before the 1st command finishes.

1 Like