Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- scp file.txt user@ip-1.com:, user@ip2.com:
- for dest in $(<destfile.txt); do
- scp ourfile.txt ${dest}:remote/path/
- done
- cat file.txt | tee >(ssh user@ip1.com "cat > file.txt")
- >(ssh user@ip2.com "cat > file.txt")
- tar cz file1 file2 file3 | tee >(ssh user@ip1.com "tar xz")
- >( ... )
- pdsh -w^destfile.txt scp hostname:/path/to/file /path/to/destfile
- cscp.sh 20337.patch < hosts.txt
- #!/bin/bash
- while read host; do
- scp $1 ${host}:
- done
- project-prod-web1
- project-prod-web2
- project-prod-web3
- cscp.sh file < hosts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement