Skip to content

Instantly share code, notes, and snippets.

@kmurudi
Created April 22, 2018 02:29
Show Gist options
  • Save kmurudi/968655584de81fbfd774ec3a1c191f19 to your computer and use it in GitHub Desktop.
Save kmurudi/968655584de81fbfd774ec3a1c191f19 to your computer and use it in GitHub Desktop.
while true ; do ./sample1.sh & sleep 5; done
#!/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