Monday, November 29, 2010

Linux tips: let the process in the background and reliable operation of several methods

Nohup---nohup uses is submitted by the command to ignore hangup signal.

Root @ RHEL5 ~] # nohuppingaix43 & [1] 5634 root @ RHEL5 ~] # nohup: appendingoutputto would nohup.out ' root @ RHEL5 ~] # ps-ef | grep5634 root56345551011: 23pts/1: 00: 00pingaix43 root56365551011: 23pts/1: 00: will undoubtedly 00grep5634 setsid---nohup HUP signal by omitting to make our process to avoid the Midway is interrupted, but if we change our perspective, if the process does not belong to accept the HUP signal Terminal child processes, then naturally not be affected by the impact of HUP signal. Root @ RHEL5 ~] # setsidpingaix43 root @ RHEL5 ~] # ps-ef | grepping root56701011: 26.00: 00: 00pingaix43 root57085677011: 28pts/1: 00: 00grepping &---when we will "&" in "()", we will find the job and not in the job list, that is, cannot be viewed through the jobs. Let's look at why so that you can escape the HUP signal. root@RHEL5 ~]#(pingaix43&)  root@RHEL5 ~]#ps-ef|grepping  root57611011:35?00:00:00pingaix43  root57655728011:36pts/200:00:00grepping  disown---

No comments:

Post a Comment