1

I am running a process in remote server(redhat linux) which takes very long time.

And I need be away for sometime, I want it to be running in background and don't stop when log out.

Just like

nohup command &

Is there any method can do this?

Yang
  • 754
  • 2
  • 8
  • 22

1 Answers1

1

You can use GNU Screen or tmux

those are terminal multiplexer which allow you to start a process and detach it from the console. You can then logout and re-attach later.

eg. with screen

screen -S title
# start your process inside screen
Ctrl A D # to detach 
logout

... later ...

login
screen -r title # re attach
Mali
  • 2,990
  • 18
  • 18