PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Reads the data found on the output buffer of the SSH session.
// The session was started by SSHConnectShell

// Read the console of SSH shell after sending a command
// with SSHWrite
WHILE True

// Consumes the content of the console by leaving 1s rest
sStdBuffer = SSHRead(cMySession, 1000, sshStandardOutput)

// As long as the console is empty
IF sStdBuffer = "" THEN
...
// See the full example
...
END
END
Syntax
<Result> = SSHRead(<SSH Session> , <Time-out> [, <Output Stream>])
<Result>: Buffer
Data read on the SSH session.
<SSH Session>: sshSession variable
Name of the sshSession variable corresponding to the SSH session to use.
<Time-out>: Integer ou Duration
Maximum time-out to receive the data (expressed in milliseconds). This parameter can correspond to:
  • an integer corresponding to the number of milliseconds,
  • a Duration variable,
  • Versions 23 and later
    the direct indication of duration (1 s or 10 ms for example).
    New in version 23
    the direct indication of duration (1 s or 10 ms for example).
    the direct indication of duration (1 s or 10 ms for example).
This parameter is set to 1000 ms by default.
<Output Stream>: Optional Integer constant
Type of stream to read:
sshErrorOutputThe data is read on the output buffer if an error occurred.
sshStandardOutput
(default value)
The data is read on the standard output buffer.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment