renice.sh 209 B

12345678910111213
  1. #!/bin/bash
  2. output=$(ps aux | grep e\[m\]acs)
  3. set -- $output
  4. pid=$2
  5. # renice emacs
  6. renice -n -10 -p $pid
  7. # output=$(ps aux | grep e\[m\]acs)
  8. # set -- $output
  9. # pid=$2
  10. # # renice emacs
  11. # renice -n -10 -p $pid