On Sun, Mar 09, 2008 at 05:34:48PM +0800, Wei Chen wrote: > a low priority. How can I make both command1 and command2 on the pipe > running in the low priority? Thank you. > > ================================= > #!/bin/sh > runprogram () { > nice -n19 ionice -c2 -n7 "$@" > } > runprogram command1 | command2
This is one of those, once you see it it'll be the most bleedingly obvious things I think. :) runprogram command1 | runprogram command2 :) -- CaT -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]