daily pastebin goal
1%
SHARE
TWEET

Untitled

a guest Aug 3rd, 2012 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2.  
  3. nodes="192.168.2.70 192.168.2.71 192.168.2.72 192.168.2.73 192.168.2.74 192.168.2.75"
  4.  
  5. for node in $nodes
  6. do     
  7.         echo copy node: $node
  8.         ssh -o StrictHostKeyChecking=no user@$node 'mkdir /home/user/AppConfigFiles/ && echo foo > /home/user/AppConfigFiles'
  9. done
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top