Run Scripts in the Background Via Nohup
We can run our scripts in background & write output to a log file as below:
nohup sh myscript.sh > myscript.log 2>&1 & disown
That will create a separate process that runs the script, and you can tail the log for output & errors.
Comments
Post a Comment