- #!/bin/bash
- 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"
- for node in $nodes
- do
- echo copy node: $node
- ssh -o StrictHostKeyChecking=no user@$node 'mkdir /home/user/AppConfigFiles/ && echo foo > /home/user/AppConfigFiles'
- done
SHARE
TWEET
Untitled
a guest
Aug 3rd, 2012
93
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data

