Linux allows a program to continue running after exiting the login?

Source: Internet
Author: User
Keywords Linux Exit Login
Tags aliyun command usage continue exit exit login html http linux

Linux allows a program to continue running after exiting the login?

We can use the Nohup command and the disown command.

Nohup command

Usage: nohup command [parameters] ...
Or: Nohup option
Ignores the suspend signal to run the specified command.

&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP; --HELP displays this help information and exits
--version display version information and exit

If the standard input is a terminal, redirect from Dev.
If the standard output is a terminal, add the output to "nohup.out" whenever possible, otherwise add to "$HOME/nohup.out".
If the standard error output is a terminal, redirect it to the standard output.
To save the output to a file, use the commands in the form nohup command > file.

Note: Your shell contains its own version of the Nohup program, which overwrites the corresponding version mentioned here. Consult your shell documentation for the options it supports.

The steps to keep a program running after exiting the login are as follows:

1 nohup Command &
2 # command
# Disown

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.