running plink with user input interaction from vb.net
Hi there,
I am trying to run a .sh file with plink from vb.net.
I am now able to run the .sh on vb.net but i have a problem because the .sh script require user input:
The .sh is prompting a few question and require user to input y/n to proceed.
I am trying plink.standardinput.writeline("y") but it looks like this input is not feed to the .sh script but rather to the plink session after the .sh script ended.
Any idea about this or is there any other way for this? Any help is m uch appreciated... I am stuckced. :(
Thanks,
SY
Re: running plink with user input interaction from vb.net
No one can help on this? :(
Re: running plink with user input interaction from vb.net
Very quick glance at the net suggests that there is no more than half a dozen people in the world using plink so you shouldn't be overly surprised if none of them visit this forum. What is there in this script that you can't do directly in VB anyway?
Re: running plink with user input interaction from vb.net
Is plink a media thing or a gene thing?
Re: running plink with user input interaction from vb.net
Yeah... I realize that not much people using this. So, is there a way for vb.net to directly communicate with a linux system? I don't have a choice and picked plink or known as putty.
Re: running plink with user input interaction from vb.net
Quote:
directly communicate with a linux system
Think that needs a bit more explanation.
Re: running plink with user input interaction from vb.net
Are you telnetting using putty?
Re: running plink with user input interaction from vb.net
I am actually sshing linux system - executing command from windows
Re: running plink with user input interaction from vb.net
Quote:
Originally Posted by
dunfiddlin
Very quick glance at the net suggests that there is no more than half a dozen people in the world using plink so you shouldn't be overly surprised if none of them visit this forum. What is there in this script that you can't do directly in VB anyway?
Snark aside, if nobody's using plink, then what is the currently-accepted way to set up SSH sessions from within VB? If I'm completely wasting my time with plink - and that is certainly possible - I'd really like to know what else to try.
Re: running plink with user input interaction from vb.net
Stumpy, there are other ways. plink is working to some extend. I wanted direst user input to respond to the .sh and it will not work.
If you are not doing this, I think it should works.