Jump to content

Interactive Command line?


Recommended Posts

Posted

I'm new so this may be my ignorance showing. How can I call an external program ( a PuTTY SSH session) and see and process the replies?

I have tried System Exec.vi but it only allows me to set the input lines beforehand and then throws them all at the program. After the session exits I can see the whole result. This is not so useful. I need to wait/parse the remote prompt before issuing the next line of input.

Thanks in advance. Pete

Posted
I'm new so this may be my ignorance showing.  How can I call an external program ( a PuTTY SSH session) and see and  process the replies?

I have tried System Exec.vi but it only allows me to set the input lines beforehand and then throws them all at the program.  After the session exits I can see the whole result.  This is not so useful.  I need to wait/parse the remote prompt before issuing the next line of input.

Thanks in advance. Pete

3976[/snapback]

If you are on linux, you can use a pipe to communicate with plink (PuTTY Link - a derivative of putty). On windows, some folks are working on supporting pipes from LabVIEW. Nothing working, of production quality, yet.

Posted

There's a windows version of expect from ActiveState. I don't know what it costs.

Oh, from the buy page:

commercial use for one user on any # of machines: US$295

education: US$49

free 21 day trial

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.