Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

linux run command in background and redirect output to file

nohup ./myscript.sh							# output is in nohup.out
nohup ./myscript.sh > myscript.log &		# output is in myscript.log
nohup ./myscript.sh &						# runs in background
 
PREVIOUS NEXT
Tagged: #linux #run #command #background #redirect #output #file
ADD COMMENT
Topic
Name
6+6 =