Skip to content

Commit

Permalink
Add example for executing multiple commands with a single channel
Browse files Browse the repository at this point in the history
  • Loading branch information
volks73 committed Mar 30, 2020
1 parent 0587482 commit fc15a75
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 18 deletions.
7 changes: 4 additions & 3 deletions LIBSSH2.lvproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
<Item Name="Examples" Type="Folder">
<Item Name="Advanced SCP File Download.vi" Type="VI" URL="../src/Examples/Advanced SCP File Download.vi"/>
<Item Name="Advanced SCP File Upload.vi" Type="VI" URL="../src/Examples/Advanced SCP File Upload.vi"/>
<Item Name="Execute Multiple Commands with a Single Channel.vi" Type="VI" URL="../src/Examples/Execute Multiple Commands with a Single Channel.vi"/>
<Item Name="Password Authentication.vi" Type="VI" URL="../src/Examples/Password Authentication.vi"/>
<Item Name="Public Key File Authentication.vi" Type="VI" URL="../src/Examples/Public Key File Authentication.vi"/>
<Item Name="Simple SCP File Download.vi" Type="VI" URL="../src/Examples/Simple SCP File Download.vi"/>
Expand Down Expand Up @@ -502,7 +503,7 @@
<Property Name="Bld_localDestDir" Type="Path">../builds/Examples</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToProject</Property>
<Property Name="Bld_previewCacheID" Type="Str">{A13C7B79-8266-44FA-809C-460DB477EB2D}</Property>
<Property Name="Bld_version.build" Type="Int">15</Property>
<Property Name="Bld_version.build" Type="Int">16</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">Destination Directory</Property>
<Property Name="Destination[0].path" Type="Path">../builds/Examples</Property>
Expand All @@ -511,7 +512,7 @@
<Property Name="Destination[1].path" Type="Path">../builds/Examples/Support</Property>
<Property Name="Destination[1].path.type" Type="Str">relativeToProject</Property>
<Property Name="DestinationCount" Type="Int">2</Property>
<Property Name="Source[0].itemID" Type="Str">{4D98BD0D-97B3-4A66-B99B-D1F5B82A801B}</Property>
<Property Name="Source[0].itemID" Type="Str">{9185DC6E-DAF6-4F8C-8C32-CB64CA27B2A3}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].Container.applyDestination" Type="Bool">true</Property>
<Property Name="Source[1].Container.applyInclusion" Type="Bool">true</Property>
Expand Down Expand Up @@ -567,7 +568,7 @@
<Property Name="Bld_localDestDir" Type="Path">../builds/Toolkit</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToProject</Property>
<Property Name="Bld_previewCacheID" Type="Str">{514E7279-3394-4E67-B6FE-EF59C28E03DA}</Property>
<Property Name="Bld_version.build" Type="Int">15</Property>
<Property Name="Bld_version.build" Type="Int">16</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">Destination Directory</Property>
<Property Name="Destination[0].path" Type="Path">../builds/Toolkit</Property>
Expand Down
40 changes: 25 additions & 15 deletions configs/LIBSSH2.vipb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<VI_Package_Builder_Settings Version="2018" Created_Date="2018-07-05 09:51:50" Modified_Date="2020-03-30 10:13:39" Creator="cfield" Comments="" ID="fde396d9b0de06f95d999323d09db50f">
<VI_Package_Builder_Settings Version="2018" Created_Date="2018-07-05 09:51:50" Modified_Date="2020-03-30 16:26:06" Creator="cfield" Comments="" ID="23e828b159e27baca5e5f03b390af89b">
<Library_General_Settings>
<Package_File_Name>Field_RnD_Services_LIBSSH2</Package_File_Name>
<Library_Version>1.0.0.16</Library_Version>
Expand Down Expand Up @@ -34,6 +34,10 @@
<URL>http://www.fieldrndservices.com/</URL>
<Release_Notes>## [Unreleased]

### Added

- Example for executing multiple commands with a single channel

### Fixed

- Missing Session Read and Write Timeout VIs for blocking functions</Release_Notes>
Expand Down Expand Up @@ -159,6 +163,12 @@
<Additional_Destination>false</Additional_Destination>
<Additional_Destination_Index>0</Additional_Destination_Index>
</Destination_Overrides>
<Destination_Overrides>
<Path>Examples/Execute Multiple Commands with a Single Channel.vi</Path>
<Destination>1</Destination>
<Additional_Destination>false</Additional_Destination>
<Additional_Destination_Index>0</Additional_Destination_Index>
</Destination_Overrides>
<Password_Overrides>
<Path>.</Path>
<Password/>
Expand Down Expand Up @@ -385,7 +395,7 @@
<Path>..\builds\Toolkit\SSH\Shutdown.vi</Path>
<VI_Title>Shutdown</VI_Title>
</Items_Data>
<GUID>5D56CFFCE49D98A95C987711E89C4D49</GUID>
<GUID>9AE30E0597153C800847E64708328FC1</GUID>
</Functions_Palette_Data>
<Functions_Palette_Data>
<Parent_Palette_Index>0</Parent_Palette_Index>
Expand Down Expand Up @@ -518,7 +528,7 @@
<Path>..\builds\Toolkit\Agent\Next Identity.vi</Path>
<VI_Title>Next Identity</VI_Title>
</Items_Data>
<GUID>B77C0BE7D8FA7BED9E459BFEC85DDEDA</GUID>
<GUID>E36AC53B050984B055F53B3003E07F78</GUID>
</Functions_Palette_Data>
<Functions_Palette_Data>
<Parent_Palette_Index>0</Parent_Palette_Index>
Expand Down Expand Up @@ -903,7 +913,7 @@
<Path>..\builds\Toolkit\Channel\Send Done.vi</Path>
<VI_Title/>
</Items_Data>
<GUID>D7F25C1172B09C5215BAABC65AC143FB</GUID>
<GUID>6D387AAC2E33CA1894D8ACFF3C7F28FB</GUID>
</Functions_Palette_Data>
<Functions_Palette_Data>
<Parent_Palette_Index>0</Parent_Palette_Index>
Expand Down Expand Up @@ -1106,7 +1116,7 @@
<Path>..\builds\Toolkit\Session\Write Timeout.vi</Path>
<VI_Title/>
</Items_Data>
<GUID>007BEF1E81387131EBC7531DC6961CCA</GUID>
<GUID>581A9B11DF4AE6765DA63B57272FC5DD</GUID>
</Functions_Palette_Data>
<Functions_Palette_Data>
<Parent_Palette_Index>0</Parent_Palette_Index>
Expand Down Expand Up @@ -1211,7 +1221,7 @@
<Path>..\builds\Toolkit\SFTP\Destroy.vi</Path>
<VI_Title/>
</Items_Data>
<GUID>4D223C689CB4840C9973D92768268E44</GUID>
<GUID>18F8D9F54B79A10BDFED9B05521FA942</GUID>
</Functions_Palette_Data>
<Functions_Palette_Data>
<Parent_Palette_Index>4</Parent_Palette_Index>
Expand Down Expand Up @@ -1344,7 +1354,7 @@
<Path>..\builds\Toolkit\SFTP\Delete File.vi</Path>
<VI_Title>Delete File</VI_Title>
</Items_Data>
<GUID>61CC888FB19EDE433656E0B067DD3E80</GUID>
<GUID>22A3BC3AE0C181D493111B4E6F0E31B2</GUID>
</Functions_Palette_Data>
<Functions_Palette_Data>
<Parent_Palette_Index>4</Parent_Palette_Index>
Expand Down Expand Up @@ -1533,7 +1543,7 @@
<Path>..\builds\Toolkit\SFTP File\Write All.vi</Path>
<VI_Title/>
</Items_Data>
<GUID>3659C1E4F9C67AC551749575842E8AC4</GUID>
<GUID>EBC6892F704BD0641C1AA0DD0E1363DC</GUID>
</Functions_Palette_Data>
<Functions_Palette_Data>
<Parent_Palette_Index>4</Parent_Palette_Index>
Expand Down Expand Up @@ -1596,7 +1606,7 @@
<Path>..\builds\Toolkit\SFTP Directory\Read.vi</Path>
<VI_Title/>
</Items_Data>
<GUID>E320801F9E0A4BF7D6344B7B0B5CC0D7</GUID>
<GUID>72109B479374F50BFB3AFFC14CDD10C0</GUID>
</Functions_Palette_Data>
<Functions_Palette_Data>
<Parent_Palette_Index>4</Parent_Palette_Index>
Expand Down Expand Up @@ -1799,7 +1809,7 @@
<Path>..\builds\Toolkit\SFTP Attributes\Read File Size.vi</Path>
<VI_Title/>
</Items_Data>
<GUID>E1BE3C05C4583D0A8BB4964E7054B560</GUID>
<GUID>6DA96DE7FEED6EE1A0107AD328C4CCF7</GUID>
</Functions_Palette_Data>
<Functions_Palette_Data>
<Parent_Palette_Index>0</Parent_Palette_Index>
Expand Down Expand Up @@ -1904,7 +1914,7 @@
<Path>..\builds\Toolkit\File Info\Destroy.vi</Path>
<VI_Title/>
</Items_Data>
<GUID>590677F05C355BED5EDBF1505E8D8CA2</GUID>
<GUID>701B370CF39A8EE95794F347EE7488B9</GUID>
</Functions_Palette_Data>
<Functions_Palette_Data>
<Parent_Palette_Index>0</Parent_Palette_Index>
Expand Down Expand Up @@ -1953,7 +1963,7 @@
<Path>..\builds\Toolkit\API\Known Host\API</Path>
<VI_Title/>
</Items_Data>
<GUID>132DA7B57ACCEB52F98432040B131925</GUID>
<GUID>8FFD58F2D0C83C29317CD97D4EC69A20</GUID>
</Functions_Palette_Data>
<Functions_Palette_Data>
<Parent_Palette_Index>10</Parent_Palette_Index>
Expand Down Expand Up @@ -2072,7 +2082,7 @@
<Path>..\builds\Toolkit\Known Hosts\Destroy.vi</Path>
<VI_Title/>
</Items_Data>
<GUID>D361BA0A861E72D39AA728BFEA49B53A</GUID>
<GUID>437F8C9E64485D5BBF0D1E77E872A9B2</GUID>
</Functions_Palette_Data>
<Functions_Palette_Data>
<Parent_Palette_Index>10</Parent_Palette_Index>
Expand Down Expand Up @@ -2177,7 +2187,7 @@
<Path>..\builds\Toolkit\Known Host\Destroy.vi</Path>
<VI_Title/>
</Items_Data>
<GUID>BA33C3CF69C6FDAA3901C673431C8F5D</GUID>
<GUID>CC9E1AF04E715149E7EEC2DE5FF129E0</GUID>
</Functions_Palette_Data>
<Functions_Palette_Data>
<Parent_Palette_Index>0</Parent_Palette_Index>
Expand Down Expand Up @@ -2226,7 +2236,7 @@
<Path>..\builds\Toolkit\Listener\Destroy.vi</Path>
<VI_Title/>
</Items_Data>
<GUID>DA24F55C8A8EC07473156E5D786F447B</GUID>
<GUID>15D5F811870FA8DDC28C2A89B4D54D97</GUID>
</Functions_Palette_Data>
</Library_Palette_Definition>
</VI_Package_Builder_Settings>
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file, which is wr

## [Unreleased]

### Added

- Example for executing multiple commands with a single channel

### Fixed

- Missing session read and write timeout VIs
Expand Down
Binary file not shown.
Binary file modified src/Examples/Single Command Execution.vi
Binary file not shown.

0 comments on commit fc15a75

Please sign in to comment.