Menu

Keep running ssh command after disconnecting from the server

nohup database_migration.sh &
  • nohup will take care of running the command and forward command output to nohup.out
  • & will run the command in the background

Use tail -f nohup.out to get the output from the command

· 12 Feb 2021