LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-15-2013, 05:53 PM   #1
andwan0
LQ Newbie
 
Registered: Jan 2009
Posts: 22

Rep: Reputation: 0
QUERY: nohup background & relogin recover process


I know about nohup & to run a job in background. But there's a feature in Midnight Commander which you can start a large folder/file copy in background. What happens if I quit Midnight Commander, will that copy job still be running in background?

Also, if I ran nohup mc &
to run Midnight Commander with no hang up, how can I put it in background and foreground? What if I quit my terminal session then ssh log back in again, how can I get that same Midnight Commander process into foreground?
 
Old 01-15-2013, 06:01 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
& = put cmd into background, BUT remains connected to owning terminal session and may be affected by fg & bg
nouhp = disconnect from owning session; may NOT be controlled by fg, bg

If you want nohup functionality and still be able to recall the session, you'll need the screen cmd instead http://linux.die.net/man/1/screen
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nohup query vicky007aggrwal Linux - Newbie 1 01-02-2013 08:15 AM
stdout & stderr background process questions nandha.v Linux - General 4 05-11-2012 08:03 AM
Nohup and Background Jobs Onyx2316 Linux - Newbie 3 02-28-2012 12:10 AM
Query about nohup abhisek.bhaumik Programming 5 08-02-2011 01:32 AM
[SOLVED] How does '&' make a process run in background ? Aquarius_Girl Programming 22 12-22-2009 10:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:49 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
Open Source Consulting | Domain Registration