0

Say I'm running a task on a remote (Ubuntu) server which last hours, but I need to disconnect my shell client now. Foolishly, I didn't use screen or think of starting the task with nohup.

Is there a way to perhaps pause the task, then start it up in the background so it will continue even with my terminal disconnected?

Steve Bennett
  • 5,750
  • 12
  • 47
  • 59

1 Answers1

3

If you're not interested in the output, you can use Ctrl-Z and then bg to run the task in the background, and then disown to stop the shell sending it a SIGHUP when you disconnect.

nickgrim
  • 4,466
  • 1
  • 19
  • 28