Visit our LabVIEW Wiki External Code Portal.
Tags |
(This content has not been tagged yet)
|
![]() |
Feb 21 2005, 10:19 PM
Post
#1
|
|||
|
4 more posts to go! Member Posts: 6 Joined: 9-February 05 Member No.: 1564 LV:6.0.1
|
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
|
||
|
|
|||
| Ad |
Feb 21 2005, 10:19 PM
Post
#
|
||
|
|
|
||
|
|
|||
Feb 22 2005, 06:15 AM
Post
#2
|
|||
|
Changing the world, one VI at a time. JKI ![]() Posts: 1696 Joined: 22-October 02 From: San Francisco, CA Member No.: 17 Using LabVIEW Since:1995 LV:8.2.1 ,8.5 ,7.1.1
My Blog
My Gallery
|
QUOTE (fumbler @ Feb 21 2005, 02:19 PM) 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 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. --------------------
|
||
|
|
|||
Feb 22 2005, 02:59 PM
Post
#3
|
|||
![]() Very Active Member Posts: 77 Joined: 30-May 03 From: Everett, WA Member No.: 107 Using LabVIEW Since:2006 LV:7.1.1 ,. ,.
|
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 This post has been edited by todd: Feb 22 2005, 03:01 PM
|
||
|
|
|||
Feb 23 2005, 02:38 AM
Post
#4
|
|||
|
4 more posts to go! Member Posts: 6 Joined: 9-February 05 Member No.: 1564 LV:6.0.1
|
Thanks guys. Yes, if I was not restricted to Windows it would not be a big problem. Pete
|
||
|
|
|||
![]() ![]() |
| Time is now: 1st December 2008 - 10:29 PM |