Hello Guys,
i have a list on cpus.txt with a name servers, and i wanna execute in each server some ssh commands, but its breaking the loop..
Can you guys note anything weird?
tks
#!/usr/bin/sh
cat cpus.txt | while read machine ; do
scp deploy.sh u805583@$maquina:/tmp/deploy.sh
ssh -l user $machine 'chmod 755 /tmp/deploy.sh'
done