Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "Starting..."
- CLIENTS="192.168.2.x 192.168.2.x"
- # SSH User name
- USR="vincent"
- # connect each client and run apt-get update && upgrade
- echo "Log on an sending update en upgrade"
- for host in $CLIENTS
- do
- ssh $USR@$host sudo apt-get update && sudo apt-get upgrade
- done
- echo 'Done this job'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement