Saturday, March 11, 2017

[LINUX] Keep shell script running in the background even after closing SSH session

If you've found yourself scratching your head how you can keep a shell script running in the background even after closing an SSH session. You're in for a treat as I've learned a new trick over the week:

nohup {shell script} &
exit


For example, if you wish to keep the Secure Connector of IBM App Connect Professional running (runclient_osgi.sh start), you'd want to do this:

nohup runclient_osgi.sh start &
exit

No comments: