Advertisement
RazZziel

Untitled

Nov 14th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. for i in $(cat ../../devops/inventories/b2b/hosts | cut -d"=" -f2 -s); do
  2. export host=$i
  3. echo $host
  4.  
  5. function mysql() {
  6. ssh operator@$host -t "/usr/bin/mysql \"$@\""
  7. }
  8. export -f mysql
  9.  
  10. ./update_db.sh
  11. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement