linux:process_management

This is an old revision of the document!


Linux Process Management

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.

ps -eo pid,lstart,etime,cmd:128
  • process termination

When a process is started from a bash shell the process is a child of the shell and when the terminal session ends the child will be sent a signal that will result in the process being terminated. To prevent this the bash disown -ha command can be used to cause the child process to not receive the signal. As a result the process will remaining running after the terminal session ends.

nohup runs the specified program os that it will not receive hang-up signal when the terminal exists. Therefore the program will continue running like a daemon.

nohup /path/to/script.py &
  • linux/process_management.1445951938.txt.gz
  • Last modified: 2015/10/27 13:18
  • by mgupton