BASH   17

Guest on 25th May 2022 07:05:16 PM

  1. #!/bin/bash
  2. #only upload one file
  3. localdns=cat /etc/hostname/ #please be the same as dnsfile
  4. local_ip=ip a |grep # get local ip
  5. file=
  6. for remoteip in `cat /etc/hosts |grep -v "${local_ip}"` ;do
  7.         ssh ${remoteip} axel -an 40 http://${local_ip}/${file} #node get newfile
  8. done

Raw Paste

Login or Register to edit or fork this paste. It's free.