I have a process that is already running for a long time and don’t want to end it.
How do I put it under nohup (that is, how do I cause it to continue running even if I close the terminal?)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Using the Job Control of bash to send the process into the background:
bgto run it in the background.disown -h [job-spec]where [job-spec] is the job number (like%1for the first running job; find about your number with thejobscommand) so that the job isn’t killed when the terminal closes.