fumbler Posted February 21, 2005 Report Share Posted February 21, 2005 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 Quote Link to comment
Jim Kring Posted February 22, 2005 Report Share Posted February 22, 2005 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. Quote Link to comment
todd Posted February 22, 2005 Report Share Posted February 22, 2005 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 Quote Link to comment
fumbler Posted February 23, 2005 Author Report Share Posted February 23, 2005 Thanks guys. Yes, if I was not restricted to Windows it would not be a big problem. Pete Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.