• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 338
  • Last Modified:

Nohup question

What will happen if i use this

nohup ./startup.sh &

command instead of this :

./startup.sh
0
jaisonshereen
Asked:
jaisonshereen
1 Solution
 
omarfaridCommented:
normally, when you run a process it is linked to  your login terminal and login shell. When you logout, the system sends kill signal to all processes linked to the login shell which results in terminating them.

The nohup command will disassociate the process from the login shell and hence when logout will not receive such kill signal and will continue to run after the logout. The & will put it in background.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now