Disown ignore hup signal, make background run

Source: Internet
Author: User

nohup,setsid,& can prevent the program from being affected by HUP signals


If a command is not submitted with the above command, then we can use the disown command to make it unaffected by the HUP signal:


When a program is not affected by a suspend:

CTRL + Z causes the current process to suspend to run in the background

(FG puts the pending process back into the foreground)

BG runs a suspended process in the background


Disown-h%1 first job ignores HUP signal

Disown-ah All jobs ignore HUP signal

Disown-rh running function ignores HUP signal

Disown ignore hup signal, make background run

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.