We don't bite newbies here... much | |
PerlMonks |
Replying to prompts in an automated scriptby mpettis (Beadle) |
on Nov 23, 2008 at 20:48 UTC ( [id://725468]=perlquestion: print w/replies, xml ) | Need Help?? |
mpettis has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I am writing a perl script to automate the spinning up of new instances in Amazon's EC2 cloud computing environment. The script will launch a new instance, do some admin on it via putty or ssh, and update some other config information (such as letting a proxy know that it can balance to the new server). The problem is that when spinning up a new instance, the first interaction with putty or ssh requires you to confirm the fingerprints of the new server. I want to either skip this or tell the process prompt 'yes' to confirm and move on. Can I respond to this prompt in a perl script with a canned response, and if so, how? Thanks, Matt
Back to
Seekers of Perl Wisdom
|
|