Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » Open a remote shell programmatically
Open a remote shell programmatically [message #571987] Mon, 14 January 2008 07:42
Harald Krapfenbauer is currently offline 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
Previous Topic:CVS checkout to remote project folder fails
Next Topic:Open a remote shell programmatically
Goto Forum:
  


Current Time: Thu Aug 28 23:33:52 EDT 2014

Powered by FUDForum. Page generated in 0.01553 seconds