Author Topic: QUERY: nohup background & relogin recover process  (Read 1766 times)

0 Members and 1 Guest are viewing this topic.

Offline andwan0

  • Jr. Member
  • **
  • Posts: 1
  • Karma: 0
  • I've just joined!
    • View Profile
    • Awards
QUERY: nohup background & relogin recover process
« on: January 15, 2013, 11:55:52 pm »
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?

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: QUERY: nohup background & relogin recover process
« Reply #1 on: January 16, 2013, 12:14:05 am »
Though I haven't really used midnight commander, its my assumption that it's a terminal (ncurses) application

Have you looked into using the screen command to run midnight commander ?

You can then detach from the terminal session. and reconnect to it as you wish.

There are tons of online tutorial for using screen over ssh .. and using screen in general :)

Such as:

« Last Edit: January 16, 2013, 01:12:29 am by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.


SimplePortal 2.3.3 © 2008-2010, SimplePortal