[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Nohup question

Posted on 2008-06-12
1
Medium Priority
?
335 Views
Last Modified: 2010-05-18
What will happen if i use this

nohup ./startup.sh &

command instead of this :

./startup.sh
0
Comment
Question by:jaisonshereen
1 Comment
 
LVL 40

Accepted Solution

by:
omarfarid earned 2000 total points
ID: 21770452
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

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month19 days, 19 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question