Nazri Ramliy wrote:
On Wed, Feb 09, 2005 at 09:48:26PM -0500, Roberto C. Sanchez wrote:Is there a way to nice the remote end of an ssh or scp session?See if this will do what you want: ssh remote 'nice cat ~/somehugefile|bzip2'|bunzip2 > somehugefile skip the bzip2/bunzip2 pipe if you want a lower load on the remote cpu.
And you probably want to nice the bzip part.. not the cat part... that doesn't eat any cpu:
ssh remote 'cat ~/somehugefile| nice bzip2 -1'|bunzip2 > somehugefile