jperlq has asked for the wisdom of the Perl Monks concerning the following question:
I am trying to sync two servers using a perl script. I want this script to run without intervention (so I can set it up as a nightly cron task).
The sysadmin has already poked holes between the two machines so VPN is not required (the machines are not in the same network). And so currently I am required to put in a password to do an scp between them.
My question for the perl monks, is how to wait for Server1 to return a password request, have the perl script on Client1 return the password?
I have tried varriations on <STDIN> but because the stdin is coming from the shell, not the user, I haven't been able to read it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Syncing Servers using Perl
by Fletch (Bishop) on Jun 26, 2008 at 13:48 UTC | |
by jperlq (Acolyte) on Jun 26, 2008 at 14:05 UTC | |
by Fletch (Bishop) on Jun 26, 2008 at 14:37 UTC | |
by moritz (Cardinal) on Jun 26, 2008 at 14:08 UTC | |
by jperlq (Acolyte) on Jun 26, 2008 at 14:27 UTC | |
by moritz (Cardinal) on Jun 26, 2008 at 14:42 UTC |