Man, #ssh never ceases to amaze me.
Just learned (after 15years on #linux) that you can execute a command on a remote host using the ' ' convention.
E.g.; ssh root@host 'date' will 1) start a connection, 2) execute date on the remote host 3) return the output of date 4) and finally close the connection.
Even better you can pipe things to the command. So echo "dog" | ssh root@1.x.x.x 'wall' will send the word "dog" to all logged in users.
I should have assumed something like this exists