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

Popular posts from this blog

Oracle Database Upgrade With OPatch Tool (RHEL/Centos/OEL)

POSTGRESQL UPGRADE WITH PG_UPGRADE UTILITY IN RHEL/CENTOS/OEL

Backup Recovery Scenarios