Run the linuxnoup command in the background

Source: Internet
Author: User
The linuxnoup command runs the program nohup & lt; program name & gt; & amp; in the background, the process continues to run after the console logout, it serves as a daemon (although it is not a strict daemon ). After the nohup command is used, the standard output of the original program is automatically changed to the .. linux noup command in the current directory to run the program nohup in the background. <程序名> & After the logout in the console, the process continues to run and serves as a daemon (although it is not a strict daemon ). After the nohup command is used, the standard output of the original program is automatically changed to the nohup. out file in the current directory, which plays a role in log and implements the complete daemon function. Www.2cto.com use the following command: nohup startWeblogic. sh & (do not write &) if you want to monitor standard output, use: tail-f nohup. in out Linux, multiple processes can be run at the same time. after a command is directly input under shell, shell places the process to the foreground for execution. If you want to put the process in the background for execution, you need to add the "&" symbol at the end of the command line. The following command is executed in the background and downloaded from ftp.isc.org. $ Fetch ftp://ftp.isc.org/pub/inn/inn-1.7.2.tar.gz & When the program has been executed on the foreground, you can use ^ Z to suspend the program. Then you can run the bg command to put the suspended program in the background for execution, or use fg to put a process in the background or suspended to the foreground for execution. When a program is running in the background at www.2cto.com, you can run the jobs command to view the background job status. When there are multiple background programs, you need to use the fg command with parameters to switch the background jobs with different serial numbers to the foreground for running. $ Jobs [1] + Running fetch ftp://ftp.isc.org/pub/inn/inn-1.7.2.tar.gz & $ Fg % 1 fetch ftp://ftp.isc.org/pub/inn/inn-1.7.2.tar.gz After you start multiple programs, you can run the ps command to view these processes and their statuses. Www.2cto.com $ psPID tt stat time COMMAND501 p2 Ss 0: 00. 24-bash (bash) 988 p2 R +. 00 ps765 p3 Is + 0: 00. 28-bash (bash) 230 v0 Is + 0: 00. 14-bash (bash) displays the PID of the process ID, control terminal TT (p0 indicates that the control terminal is ttyp0), process status STAT, the processor TIME and specific commands used by the process. There are also two commonly used ftp tools ncftpget and ncftpput, which can be used to upload and download files in the background through ftp, so that you can use these commands to upload and download files in the background.
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.