ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / SSH functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Writes data into the specified SSH session.
Example
cMySession is sshSession
// The session was started by SSHConnectShell.
// Charact(10) is used to end the command line to send.
 
// Position in the /var/log folder
SSHWrite(cMySession, "cd /var/log" + Charact(10))
 
// Ask to read the lines containing "error"
SSHWrite(cMySession, "grep -i error /var/log/messages" + Charact(10))
Syntax
<Result> = SSHWrite(<SSH session> , <Data>)
<Result>: Boolean
  • True if the data was successfully sent,
  • False if an error occurred. ErrorInfo returns more information on the error.
<SSH session>: sshSession variable
Name of the sshSession variable corresponding to the SSH session to be used.
<Data>: Buffer
Data that will be written into the SSH session.
Business / UI classification: Business Logic
Component: wd290com.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help