mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-30 23:02:39 -06:00
SshBasics (a reference example set for the SSH package) is added, and SFtpGet & SshExec examples are removed.
git-svn-id: svn://ultimatepp.org/upp/trunk@12171 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
aeff9929a4
commit
36804053e3
16 changed files with 273 additions and 73 deletions
12
reference/SshBasics/Shell.cpp
Normal file
12
reference/SshBasics/Shell.cpp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#include "SshBasics.h"
|
||||
|
||||
// ShellConsole:
|
||||
// Demonstrates an interactive shell in console mode.
|
||||
|
||||
void ShellConsole(SshSession& session)
|
||||
{
|
||||
SshShell shell(session);
|
||||
shell.Timeout(Null);
|
||||
if(!shell.Console("ansi"))
|
||||
LOG(shell.GetErrorDesc());
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue