Execute Commands After You Exit From a Shell Prompt

Most of the time you may have to login to a remote server via a SSH and multiple commands need to execute in the same time. If you can not open multiple shell prompt tabs it is not posible to run them in the same time. So if you get exit from the command prompt the excution get killed. So better thing to do is run the excution in background. So Linux has a good option for this. Its nohup command.


nohup command-name &


Leave a Reply

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 /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s