linux run command in 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 &
Example 3: background script linux
$ nohup serve -s build -l 8080 &