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");
In reply to Interactive input via telnet by Noame
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |