Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Im running a ssh within visual basic but i would like to control it

Status
Not open for further replies.

skynetosiris

Programmer
Jun 2, 2003
15
MX
Im running an ssh shell in visual basic, what i want to do is that the DOS window get the focus, and my vb program gets aware of it, once a timeout is complete it would rise me an error, but if is run ok, i want that the vb application finishes ok?, is that posible?, i hope this make sence.

Thanks in advance
 
Nope it doesn't make sense.
"ssh shell in visual basic" Ie you shell a command line?
Programs in the Shell don't report errors back to the windows level.

"my vb program gets aware of it" you can interact with the command window via vb.

What do you want to raise an error? VB? In the case that the SSH session doesn't start?

Take a bit more time and describe what you are trying to do.
 
Ok let me explain:

What i want is to run a DOS Application (it does not matter if is ssh or whatever)

I want that if the DOS application hangs the program ends by timeout so i will be able to send an error message, but if the program finishes ok, i would like that the program cancels the timeout and send me a message that the dos apl finishes ok.

i hope this will clarify my question

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top