Changeset 417
- Timestamp:
- Nov 24, 2019, 6:27:42 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tssh/tssh
r416 r417 252 252 if [ "${parallel}" == 'yes' -a -n "${remote_command}" ] 253 253 then 254 if which parallel > /dev/null254 if parallel --version 2> /dev/null | grep -q ^'GNU parallel' 255 255 then 256 sort -u "/tmp/${base_path}/master++" | parallel -j ${split_number} "ssh ${ssh_option} {} ${remote_command}"256 sort -u "/tmp/${base_path}/master++" | parallel -j ${split_number} -I {} -- "ssh ${ssh_option} {} ${remote_command}" 257 257 else 258 sort -u "/tmp/${base_path}/master++" | xargs - n 1 -P ${split_number} -I{}ssh ${ssh_option} {} "${remote_command}"258 sort -u "/tmp/${base_path}/master++" | xargs -r -n 1 -P ${split_number} -I {} -- ssh ${ssh_option} {} "${remote_command}" 259 259 fi 260 260
Note: See TracChangeset
for help on using the changeset viewer.