LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-07-2008, 10:47 AM   #1
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
nohup


Hi,
nohup lets you run a command after the user logs off.
In which situations would you use it? What are the most typical uses of it?

thanks
 
Old 01-07-2008, 11:13 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
http://www.google.com/linux?hl=en&q=nohup&btnG=Search
 
Old 01-08-2008, 01:24 PM   #3
xptools
Member
 
Registered: Sep 2005
Location: Canada
Distribution: Debian Testing
Posts: 40

Rep: Reputation: 15
If you can't think of situations you would use it, then most probably you won't need it -- nohup is not for your local linux, but for remote servers, except this practical nohup usage.
 
Old 01-08-2008, 01:53 PM   #4
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Mainly when I start a graphical user interface program from a terminal (say I need to pass some parameters to it, for example), but don't like to have the terminal wait there open all the time - or even worse, semi-accidentally close the terminal and also terminate the program started off it. In that case nohup allows closing the terminal and still having the program run.

Another somewhat similar thing I use, but mainly just with remote connections (and usually with irssi), is screen. It allows detaching the process, like irssi in my case, log out and later log back in and re-attach the very same process, thus not disconnecting anything "important".
 
Old 01-08-2008, 05:49 PM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836

Original Poster
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
thanks guys, yes at the moment I won't probably need it
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
To use or not to use nohup entz Linux - Server 9 04-07-2007 04:52 PM
Need to install nohup osmania Linux - Software 5 02-01-2007 03:20 PM
problem with nohup command and nohup file size vbseeker Linux - General 1 09-17-2006 11:36 AM
help on nohup vinayuh Linux - General 3 07-22-2005 12:24 PM
nohup failure tn1681 Programming 1 01-09-2003 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration