This article turns from http://www.cnblogs.com/lwm-1988/archive/2011/08/20/2147299.htmlThere are two ways of doing this:1. Command : Background run, you shut down the terminal will stop running2. Nohup Command : Run in the background, you will continue to run the terminalFir
First, why do you want to make the program in the backgroundThe procedures we calculate are very long, usually a few hours or even one weeks. The environment we use is to connect remotely to a Japanese Linux server using Putty. So the following three benefits of running the program in the background: 1: Whether the shutdown of our side does not affect the Japanese side of the program run. (not as before, we
First, why do you want to make the program in the backgroundThe procedures we calculate are very long, usually a few hours or even one weeks. The environment we use is to connect remotely to a Japanese Linux server using Putty. So the following three benefits of running the program in the background: 1: Whether the shutdown of our side does not affect the Japanese side of the program run. (not as before, we
1. Add "" after the command to make the command work in the background. The biggest advantage of this operation is that it is not afraid of being interrupted by the ctrl + c command.
2. You may have to ask again how the program executed in the background restores it to the foreground for running? It's easy. Just execute the command fg.
3. Some people may ask again. Can I put the command I have
One, why to make the program line
The programs we calculate are very long periods, usually in hours or even one weeks. The environment we use is remotely connected to a Japanese Linux server using Putty. So running a program in the background has the following three benefits:
1: Our side whether the shutdown does not affect the Japanese side of the program running. (Not like before, we this network a disconnect, or a shutdown, the program will be brok
We often encounter this problem. We use telnet/ssh to log on to a remote Linux server and run some time-consuming tasks. as a result, the task fails midway through due to network instability. How can I prevent the local terminal window/network disconnection after the command is submitted?... information
We often encounter this problem. We use telnet/ssh to log on to a remote Linux server and run some time-
We often encounter this problem. We use telnet/ssh to log on to a remote Linux server and run some time-consuming tasks. As a result, the task fails midway through due to network instability. After the command is submitted, how does one prevent the local terminal window/network disconnection? Here are some examples. You can select different methods for different scenarios to solve this problem.Nohup/setsid /Scenario:If a temporary command needs to be
Want the process to remain running after disconnecting? If the process is already running, how can it be remedied? If there are a large number of such requirements how to simplify the operation?We often encounter such problems, log on to the remote Linux server with TELNET/SSH, run some long-time tasks, the result of the network instability caused by the task Midway failure. How do i make the command submit without being disturbed by the local shut-do
Want the process to remain running after disconnecting? What if the process has started running? If there are a large number of such requirements how to simplify the operation?We often encounter such problems, log on to the remote Linux server with TELNET/SSH, run some long-time tasks, the result of the network instability caused by the task Midway failure. How do i make the command submit without being disturbed by the local shut-down terminal window
First, why do you want to make the program in the backgroundThe procedures we calculate are very long, usually a few hours or even one weeks. The environment we use is to connect remotely to a Japanese Linux server using Putty. So the following three benefits of running the program in the background: 1: Whether the shutdown of our side does not affect the Japanese side of the program run. (not as before,
First, why do you want to make the program in the background The procedures we calculate are very long, usually a few hours or even one weeks. The environment we use is to connect remotely to a Japanese Linux server using Putty. So the following three benefits of running the program in the background: 1 : Whether the shutdown of our side does not affect the Japanese side of the program
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
Source: http://www.ibm.com/developerworks/cn/linux/l-cn-nohup/We often encounter such problems, log on to the remote Linux server with TELNET/SSH, run some long-time tasks, the result of the network instability caused by the task Midway failure. How do i make the command submit without being disturbed by the local shutdown of the terminal window/network disconnection? Here are some examples where you can choose different ways to handle this problem fo
Run programs on Linux terminals in the background
In Linux, if you want to run the process in the background, we usually add to the end of the command. In fact, the command is put into a Job Queue:
$./Test. sh
[1] 17208
$ Jobs-l
[1] + 17208 Running./test. sh
For commands that have been executed on the foreground, yo
Several methods to make processes run reliably in the CentOS system Background
We often encounter this problem. We use telnet/ssh to log on to a remote Linux server and run some time-consuming tasks. As a result, the task fails midway through due to network instability. After the command is submitted, how does one prevent the local terminal window/network disconn
How to run and control background processes in Linux: nohup, setsid, , disown, screen
From http://heylinux.com/archives/1282.html#more-1282
We often encounter this problem. We used SSH to log on to a remote Linux server and run some time-consuming tasks. As a result, the task failed midway through due to unstable network conditions.This is because when a us
I. Why do I need to execute the program in the background?
Our computing programs have a long cycle, usually several hours or even a week. We use Putty to remotely connect to a Linux server in Japan. Therefore, running the program in the background has the following three benefits:
1: whether or not we shut down the server does not affect the program running in Japan. (As before, when we disconnected the ne
A piece of soy sauce, sort out some of the ways that spring boot background runs. Before we introduce the background run configuration, let's review some of the ways that the spring boot app works:
Run the Spring boot application main class
Use MAVEN's spring boot plugin mvn spring-boot:run to
In Linux, how does one run processes in the background in Linux? if you want to run processes in the background, we can add amp; after the command. In fact, in this way, the command is put into a job queue: [plain] $. /test. sh amp; [1] 17208 $ jobs-l [1] +... in Linux, how does one make processes
We often encounter this problem. We use Telnet/ssh to log on to a remote Linux server and run some time-consuming tasks. As a result, the task fails midway through due to network instability. After the command is submitted, how does one prevent the local terminal window/network disconnection? Here are some examples. You can select different methods for different scenarios to solve this problem.Nohup/setsid/ scenario:
If a temporary command needs to be
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.