|
|
|
|
|
by webreac
4940 days ago
|
|
My most common use of xarsg -P is for compressing logs on remote hosts before downloading them:
cat RemoteHosts | xargs -P 0 -n 1 -I Host rsh Host gzip -9 xxx/*.log
The cool thing is that it waits until the completion of all the commands before returning. |
|