carefullynamed
carefullynamed

Reputation: 447

Forgot to use & after command, need to send process to background

I have been running a program using nohup but I forgot to add & after the command so the terminal is stuck on the process that has been running for hours. the script I am running in python generates 5 processes each time.

Is there anyway I can make the entire script to continue in the background (get the same effect as an &) without killing and rerunning the process.

Upvotes: 6

Views: 2429

Answers (1)

Karl Barker
Karl Barker

Reputation: 11351

Hit Ctrl-Z to suspend the process.

Then bg to tell it to run again as a background process.

Upvotes: 12

Related Questions