Board index » Visual Studio » question on scripting a telnet session

question on scripting a telnet session

Visual Studio180
I am trying to automate execution of an engineering code using a vbs script.

So far, the script is successful in starting telnet, logging on to the

remote server, and submitting the job. However when the job starts, it

sometimes needs additional user input (eg, output file already exists, do

you want to overwrite it (y/n)?). I need my script to recognize when this

type of information request occurs. So far I have not been able to find a

method to retrieve text displayed in the command shell window. Any

suggestions on how to do this?



Thanks,

John Gunn


-
 

Re:question on scripting a telnet session

John,



Did you ever find a solution for this?



I'm working on a similar project and may have a solution for you.



If you did indeed find a solution I'd like to know if you'd share it.

It may stop me from going down some of the road-blocked paths.



Thanks,



CoachHog



On Mon, 8 Nov 2004 10:55:05 -0700, "John Gunn" <jgunn43@cox.net>

wrote:



Quote
I am trying to automate execution of an engineering code using a vbs script.

So far, the script is successful in starting telnet, logging on to the

remote server, and submitting the job. However when the job starts, it

sometimes needs additional user input (eg, output file already exists, do

you want to overwrite it (y/n)?). I need my script to recognize when this

type of information request occurs. So far I have not been able to find a

method to retrieve text displayed in the command shell window. Any

suggestions on how to do this?



Thanks,

John Gunn





-