I've set SSH_AUTH_SOCK and SSH_AGENT_PID environment variables so the script can run from cron, but there is no password prompt with ssh-agent and hostkey authentication. an
* Johnathan Kupferer ([EMAIL PROTECTED]) wrote: > I was actually surprised to see that ssh worked like this! I don't > think you can always get away with it, but I just tested it out and was > able to call up ssh for 4 different machines using a script similar to > that one. I don't think all programs are going to be that nice. > > Can anyone explain how ssh got the keyboard input?! Doesn't perl have > control of <STDIN> or does it pass that off to the spawned process > during a call to 'system'? > > - Johnathan > > > James Taylor wrote: > > >I don't believe this is what he's asking - What the problem is in this > >code is that after the first instance of SSH runs, and then exits, it will > >not continue on to the next key in the array. > > > >I can't figure out why it won't do it, I don't generally write programs > >using system calls :) > > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]