How to run the stopped command in the linux background today I want to run a JOB in the linux background, but a command is executed in the background and an & amp ;, run the jobs command to check whether the task cannot be run in the background and the status changes to stopped. Www.2cto.com on the network...
How to run the stopped command in the linux background today I want to run a JOB in the linux background, but a command is executed in the background and added &, run the jobs command to check whether the task cannot be run in the background and the status changes to stopped. Www.2cto.com looked for information on the internet. it turns out that the command line has been waiting for input and output, so it has been blocked there, the Java code drush get-image-regenerate </dev/null>/dev/null 2>/dev/null & can be run after modification, java code www.2cto.com jobs [1] + Running drush get-image-regenerate </dev/null>/dev/null 2>/dev/null & then want to exit terminate or LOGOUT, this command will be executed again, and I will execute the disown Java code disown-h % 1. now, even if I quit the user, this command will always be executed in the background.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.