Solved

Nohup question

Posted on 2008-06-12
1
302 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 500 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

863 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now