PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
New WINDEV, WEBDEV 24 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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
cMySession.Write("cd /var/log" + Charact(10))

// Ask to read the lines containing "error"
cMySession.Write("grep -i error /var/log/messages" + Charact(10))
Syntax
<Result> = <SSH session>.Write(<Data>)
<Result>: Boolean
  • True if the data was successfully sent,
  • False if an error occurred. ErrorInfo returns more details about the problem.
<SSH session>: sshSession variable
Name of sshSession variable corresponding to the SSH session to use.
<Data>: Buffer
Data that will be written into the SSH session.
Component : wd240com.dll
Minimum required version
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment