Solved

Nohup question

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
(Open)LDAP V2.44  search proxy to AD (W2012R2) 37 170
Setting up static IP - Ubuntu server 16.04 12 94
number in printf 13 32
Syslog-ng works. Now what? How to filter and manage? 8 56
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

791 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