ssh
I want to be able to write a script that manages a system remotely. this is what i have and i can't seem to figure out the problem, so any pointers, suggestions, comments, possible fixes would be greatly appreciated. =)
---main---
#!/bin/bash
while read cmd; do
ssh 10.10.10.10 $cmd
done < command.file
--command.file---
echo "hello"
echo "this is a test"
.
.
etc...
i have it set such that there's a trusted host relationship b/w the host and client so there's no password prompt. what seems to happen is that while loop in the main program only executes the first command in the command file. and i have no clue why.
help... pleaaaaaaaaase?
|