LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Visit our LabVIEW Wiki External Code Portal.


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Interactive Command line?, Trying to drive a PuTTY session
fumbler
post 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
New Zealand


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


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Feb 21 2005, 10:19 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
Jim Kring
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
United States us_california Nothing Selected 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.

--------------------
-----------------------------------------------------------------------------------------------------
| Book | OpenG | LAVA | Champion | VIPM | Builder | Blog | JKI |
-----------------------------------------------------------------------------------------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
todd
post 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 ,. ,.
United States Nothing Selected Nothing Selected


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


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
fumbler
post 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
New Zealand


Thanks guys. Yes, if I was not restricted to Windows it would not be a big problem. Pete


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 1st December 2008 - 10:29 PM