Created
April 22, 2018 02:29
-
-
Save kmurudi/968655584de81fbfd774ec3a1c191f19 to your computer and use it in GitHub Desktop.
This file contains 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
while true ; do ./sample1.sh & sleep 5; done |
This file contains 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
#!/bin/bash | |
sudo docker cp PGW1:/var/log/grp0.log ~/data1.log | |
sudo docker cp PGW2:var/log/grp0.log ~/data2.log | |
cat ~/data1.log ~/data2.log > ~/publicGW.log | |
sudo rm data1.log | |
sudo rm data2.log | |
sudo docker cp IGW1:/var/log/grp0.log ~/data3.log | |
sudo docker cp IGW2:/var/log/grp0.log ~/data4.log | |
cat ~/data3.log ~/data4.log > ~/intGW.log | |
sudo rm data3.log | |
sudo rm data4.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment