Quote:
Originally Posted by paulsm4
Something like this:
Code:
for s in $SERVERS; do
scp *.txt user@$s:/some/folder
done
|
I've got the following shell script:
#!/bin/ksh
for i in `cat eracent_oracle.txt | grep hostname | awk '{print $1}'`; do scp -v
LNR_ClientsInstaller_S_EPA_Linux_64 root@$i:/; echo $i; done
I get no output from the script at all... not sure what I am missing
(fyi i I already have SSH keys ssetup)
EDIT:
Never mind I misspelled hostname in my server file lol!