[Discuss] bash command line question

pw p.willis at telus.net
Fri Jun 29 13:55:31 PDT 2007


Chris Hennessy wrote:
> Well you can do it in code, or you can use a utility called taskset. 
> Part of
> the schedutils package I believe. It allows you to set the affinity of a
> process.  I googled and found it.
> 
> Chris

COOL!!!
  for PID in `ps -eo pid`; \
  do taskset -c -p $PID; done

Life is good.

Thank you Chris!

Peter



More information about the Discuss mailing list