2011-01-29 handling processes in bash

2011-01-31 18:05:27
  • Give detailed information on all python processes:
    ps -fp $(pgrep -d, -x python)
  • Make all python processes run nicer so that they do not obstruct other processes / users:
    renice 14 `pgrep python`
  • listing processes in the current bash session:
    jobs -l
  • stopping all python processes :
    pkill -s STOP python
  • resuming all python processes ( alert to test ... ) :
    pkill -s CONT python

Comments

Comments powered by Disqus