Results 1 to 10 of 10

Thread: running plink with user input interaction from vb.net

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2012
    Posts
    11

    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

  2. #2

    Thread Starter
    New Member
    Join Date
    Sep 2012
    Posts
    11

    Re: running plink with user input interaction from vb.net

    No one can help on this?

  3. #3
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    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?
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  4. #4
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: running plink with user input interaction from vb.net

    Is plink a media thing or a gene thing?
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2012
    Posts
    11

    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.

  6. #6
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: running plink with user input interaction from vb.net

    directly communicate with a linux system
    Think that needs a bit more explanation.
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

  7. #7
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: running plink with user input interaction from vb.net

    Are you telnetting using putty?
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

  8. #8

    Thread Starter
    New Member
    Join Date
    Sep 2012
    Posts
    11

    Re: running plink with user input interaction from vb.net

    I am actually sshing linux system - executing command from windows

  9. #9
    New Member
    Join Date
    May 2013
    Posts
    1

    Re: running plink with user input interaction from vb.net

    Quote Originally Posted by dunfiddlin View Post
    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.

  10. #10

    Thread Starter
    New Member
    Join Date
    Sep 2012
    Posts
    11

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width