Open a remote shell programmatically [message #571987] |
Mon, 14 January 2008 12:42 |
Harald Krapfenbauer Messages: 16 Registered: July 2009 |
Junior Member |
|
|
Hello,
I have the following question:
I want to execute a command remotely in the default shell of a
connection programmatically, hence I wrote:
IRemoteCmdSubSystem cmdSS =
RemoteCommandHelpers.getCmdSubSystem(connection);
IRemoteCommandShell shell = cmdSS.getDefaultShell();
cmdSS.sendCommandToShell("ls", shell, null);
If the default shell was not open, it is opened, but only shown in the
"Remote Systems" view. I now want to do programmatically exactly what
happens when I choose "Show in Remote Shell View" from the default
shell's context menu, i.e. the "Remote Shell" view shall pop up, and the
default shell shall be visible (i.e. newly opened, or brought to
foreground).
How can I accomplish this?
Thank you + best regards,
Harald Krapfenbauer
|
|
|
Powered by
FUDForum. Page generated in 0.01504 seconds