Created
June 12, 2018 03:11
-
-
Save ethercflow/96cafb3f99da13348e2d1894895a59eb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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