detached process


If you want to run an application from ssh even if you exit ssh session, do the following:

# nohup <application with arguments > &

This will put the process in background and will detach from terminal as well.

Also, edit /etc/rc.local and add above line to execute application from startup.

This works fine with CentOS 6.

Advertisements

પ્રતિસાદ આપો

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / બદલો )

Twitter picture

You are commenting using your Twitter account. Log Out / બદલો )

Facebook photo

You are commenting using your Facebook account. Log Out / બદલો )

Google+ photo

You are commenting using your Google+ account. Log Out / બદલો )

Connecting to %s