linux:process_management

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:process_management [2017/05/25 16:24] – [nohup] mguptonlinux:process_management [2018/06/01 13:27] (current) mgupton
Line 3: Line 3:
   * process listing command   * process listing command
 An example of a good general purpose process listing including a long formatted date-time of the start time of the command and the elapsed time since the process was started. An example of a good general purpose process listing including a long formatted date-time of the start time of the command and the elapsed time since the process was started.
-<code>+<code bash>
 ps -eo pid,lstart,etime,cmd:128 ps -eo pid,lstart,etime,cmd:128
 </code> </code>
Line 13: Line 13:
 ps -ef | grep -i "[f]oobar" ps -ef | grep -i "[f]oobar"
 </code> </code>
 +
 +  * List process hierarchy (tree)
 +<code bash>
 +ps -ejH
 +</code>
 +
 =====disown===== =====disown=====
   * process termination   * process termination
Line 21: Line 27:
 ''nohup'' runs the specified program so that it will not receive a hang-up signal when the terminal exists. Therefore the program will continue running like a daemon. ''nohup'' runs the specified program so that it will not receive a hang-up signal when the terminal exists. Therefore the program will continue running like a daemon.
 <code> <code>
-nohup /path/to/script.py &+nohup python /path/to/script.py &
 </code> </code>
  • linux/process_management.1495729499.txt.gz
  • Last modified: 2017/05/25 16:24
  • by mgupton