David C. Rankin wrote:
Listmates,
I don't know if this is possible without socket programming, but is there anyway I can call a local script that would execute a script on a remote machine?
yes. The original way to run a command on a remote machine would be through the use of rsh. However, I believe that rsh is now considered to be flagrantly insecure. So use I believe the secure method is this: ssh remotehostname /path/to/script/on/remote/machine I don't know if ssh will pass arguments -- if not, then write the script to either generate the arguments as needed, or you can pass the arguments by putting them into a file, copying them to the target machine using scp (just before calling ssh), and then having a wrapper on the remote machine which does something like this: scriptname < `cat scriptars`.
Basically, I have several remote servers at the office. I check/test updates on my home server/testbox before updating the boxes at work. After I have confirmed the updates at home, I would like to call a script that would cause the update script on the remote machine to run. I can't figure out how to get past establishing the ssh connection. I can connect just fine, but that's were it ends, I'm on the remote box and it is waiting for me to do something.
Hmmm.. You have should have a shell prompt...
Can I modify the remote .bashrc and pass some ssh parameter to cause .bashrc to run the script? Am I stuck with rsh? As always any help or point to the right man page will be greatly appreciated.
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org