Jump to content

Interactive Command line?


Recommended Posts

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

Link to comment
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.

Link to comment

Join the conversation

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

Guest
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.