Noame has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing Perl program that running on Windows and should connect to UNIX via Telnet module. The telnet command should to execute tuxedo command on Unix side as describe below:
my question is how can I interactive with the tuxedo command, means to send an answer as describe below:$telnet->cmd("/opt/bea/tuxedo8.1/bin/tmloadcf GPPconfig.ubb");
Please advice how can i send/approve the question , or enable the user to answer the question online. below is the part of my program that handling the telnet issues:/opt/bea/tuxedo8.1/bin/tmloadcf GPPconfig.ubb Really overwrite TUXCONFIG file: /users2/t +ec3/fundtech/env/GPPconfig [y, q] ?
Thanks,# Connect --------------------------- print "Connecting to $hostname($username:$password)...\n"; $telnet = Net::Telnet->new( Timeout => $timeout, Prompt => '/[\$%#>] $/' , Host => $hostname ); $telnet_put = Net::Telnet->new( Timeout => $timeout, Prompt => '/[\$%#>] $/' , Host => $hostname ); $telnet->login($username, $password); print "Login successfully.\n"; @results = $telnet->cmd("cd $envPath"); $telnet->cmd("/opt/bea/tuxedo8.1/bin/tmloadcfGPPconfig.ubb");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Interactive input via telnet
by thezip (Vicar) on Nov 04, 2007 at 17:21 UTC | |
|
Re: Interactive input via telnet
by KurtSchwind (Chaplain) on Nov 04, 2007 at 23:17 UTC | |
|
Re: Interactive input via telnet
by regexes (Hermit) on Nov 05, 2007 at 13:17 UTC | |
|
Re: Interactive input via telnet
by glide (Pilgrim) on Nov 05, 2007 at 10:25 UTC | |
by Noame (Beadle) on Nov 05, 2007 at 13:59 UTC | |
by glide (Pilgrim) on Nov 05, 2007 at 18:10 UTC |