The Nohup command in Linux

Source: Internet
Author: User

The Nohup command can not hang up the Run command, for example we often operate the server through the client tool, when the client tool and the server link is interrupted, the running command will also be interrupted.
For this scenario, we can use the Nohup command to run a non-hanging command.

For example, we execute a PHP command, so we can write nohup php createhtmls.php 1 1 &

The nohup command writes output results, errors, etc. to the Nohup.out file, assuming that we are currently in the/home folder, then the file will be generated in the/home folder, and its location will change when you switch to the WWW directory.

The Nohup command in Linux

Related Article

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.