search for: virt4

Displaying 1 result from an estimated 1 matches for "virt4".

Did you mean: virt
2010 Sep 24
2
grep contents of file on remote server
...-KEY-DATA-/FAKE-KEY-DATA-== bluethundr at lbsd8-2.summitnjhome.com==: No such file or directory grep: root at bt-laptop: No such file or directory [/code] Ultimately, what I would like to do is script this in order to automate this process: [code] #!/bin/sh HOSTS="sum1 sum2 virt1 virt2 virt3 virt4 virt5 virt6 virt7" SSHDIR=~/.ssh RSYNC=/usr/local/bin/rsync KEYFILE=/home/bluethundr/.ssh/id_rsa.pub CAT='/bin/cat' GREP='/bin/grep' for h in $HOSTS ; do scp $KEYFILE root@$h:~/ if [ $? = 0 ]; then echo ; echo ; echo echo "KEY TRANSFERRED TO $h" else ec...