|
|
|
|
Lee los datos encontrados en el buffer de salida de la sesión SSH. // The session was started by SSHConnectShell // Read the console of SSH shell after sending a command // with SSHWrite WHILE True // Consume 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
Sintaxis
<Result> = SSHRead(<SSH session> , <Timeout> [, <Output stream>])
<Result>: Buffer Datos leídos en la sesión de SSH. <SSH session>: Variable de tipo sshSession Nombre de la sshSession Variable correspondiente a la sesión SSH que se va a utilizar. <Timeout>: Entero o Duración Tiempo máximo de espera para recibir los datos (expresado en milisegundos). Este parámetro puede corresponder a: - un número entero que corresponde al número de milisegundos,
- una variable de tipo Duration,
- la duración en un formato legible (por ejemplo, 1 s o 10 ms).
Este parámetro es set a 1000 ms por Default. <Output stream>: Constante opcional de tipo Integer Tipo de stream a leer: | | sshErrorOutput | Los datos se leen en la memoria intermedia de salida si se ha producido un error.. | sshStandardOutput (valor predeterminado) | Los datos se leen en la memoria intermedia de salida estándar. |
Clasificación Lógica de negocio / UI: Lógica de negocio
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|