Sample Script: TLuaSSH2ClientSSHClient = TLuaSSH2Client(); SSHClient:Open(23,"testuser","testpassword"); if SSHClient:ExecuteCommand("shutdown") == true then print(SSHClient:GetStdOut()); SetExitStatus("Exec ok",true); else
print(SSHClient:GetStdErr()); print(SSHClient:GetErrorDescription()); SetExitStatus("Exec failed",true); end
| |||
Topic 9733: Send Feedback. Download a PDF of this online book from the first topic in the table of contents. Print this topic. |