shell nohup 1

shell nohup

nohup ./myscript.sh							# output is in nohup.out
nohup ./myscript.sh > myscript.log &		# output is in myscript.log
nohup ./myscript.sh &						# runs in background

Here is what the above code is Doing:
1. The first line runs the script in the background and sends the output to nohup.out.
2. The second line runs the script in the background and sends the output to myscript.log.
3. The third line runs the script in the background and sends the output to nohup.out.

Similar Posts