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
Sends a command to an SSH server. The session is automatically started and closed as soon as the command is sent.
Example
cMySession is sshSession
cMySession..Address = "127.0.0.1"
cMySession..Port = 22
cMySession..User = "login"
cMySession..UserPassword = "pass"
nExitCode is int
sOutput is ANSI string
sOutputErr is ANSI string
(nExitCode, sOutput, sOutputErr) = SSHCommand(cMySession, EDT_Command)
IF ErrorOccurred THEN
Error(ErrorInfo(errFullDetails))
RETURN
END
EDT_ExitCode = nExitCode
EDT_StdOut = UTF8ToString(sOutput)
EDT_StdErr = UTF8ToString(sOutputErr)
Syntax
(<Result>, <Data Received>, <Data if Error>) = SSHCommand(<SSH Session> , <Command> [, <Data to Send>])
<Result>: Integer
Exit code of the command.
<Data Received>: Buffer
Data received from the server.
<Data if Error>: Buffer
Data received from the server if an error occurs.
<SSH Session>: sshSession variable
Name of sshSession variable corresponding to the SSH session on which the command must be run.
<Command>: Character string
Command that must be sent to the SSH server.
<Data to Send>: Optional buffer
Data that must be sent to the server.
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