LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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, 11:47 AM   #1
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,595
Blog Entries: 1

Rep: Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046Reputation: 1046
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, 12:13 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
http://www.google.com/linux?hl=en&q=nohup&btnG=Search
 
Old 01-08-2008, 02: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, 02:53 PM   #4
b0uncer
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, 06:49 PM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,595
Blog Entries: 1

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 05:52 PM
Need to install nohup osmania Linux - Software 5 02-01-2007 04:20 PM
problem with nohup command and nohup file size vbseeker Linux - General 1 09-17-2006 12:36 PM
help on nohup vinayuh Linux - General 3 07-22-2005 01:24 PM
nohup failure tn1681 Programming 1 01-09-2003 06:40 PM


All times are GMT -5. The time now is 12:46 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration