Skip to content

Instantly share code, notes, and snippets.

@ethercflow
Created June 12, 2018 03:11
Show Gist options
  • Select an option

  • Save ethercflow/96cafb3f99da13348e2d1894895a59eb to your computer and use it in GitHub Desktop.

Select an option

Save ethercflow/96cafb3f99da13348e2d1894895a59eb to your computer and use it in GitHub Desktop.
cat iplist.txt | while read ip
do
ssh -n -l root $ip pkill InjuredFS
ssh -n -l root $ip rm /root/zwb/InjuredFS
ssh -n -l root $ip rm /root/zwb/nohup.out
scp ./InjuredFS $ip:/root/zwb/
sleep 120
ssh -n -l root $ip cd /root/zwb && nohup ./InjuredFS --original="/tidb-original" --mountpoint="/tidb" &
echo $ip
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment