linux run background code example
Example 1: linux run background
nohup ./myscript.sh & # runs in background
nohup ./myscript.sh # output is in nohup.out
nohup ./myscript.sh > myscript.log & # output is in myscript.log
Example 2: linux run task in background
[command] 2> /dev/null &