PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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.
Versions 25 and later
WEBDEV - Server codeLinux This function is now available for WEBDEV applications in Linux.
Linux This function is now available for WINDEV applications in Linux.
New in version 25
WEBDEV - Server codeLinux This function is now available for WEBDEV applications in Linux.
Linux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV applications in Linux.
Linux This function is now available for WINDEV applications in Linux.
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.
Business / GUI classification : Business Logic
Component : wd250com.dll
Minimum version required
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment