From: Dhiren C. <cd...@gm...> - 2009-05-10 12:51:14
|
Hi All, I am new to Expect and want to write a Perl program which shall spawn/interact with a remote program say e.g. xyz which has interactive promts. The remote system supports telnet to login. Can someone send me the perl code to achieve this? Many thanks in advance. local system: ---------------------- ./abc.pl //this program has to spawn a remote progrm "xyz" and send interactive commands based on the prompts shown below remote system ----------------------- ./xyz Do you wish to continue [Y/N]: Are you sure [y]: Enter your name: |