Skip to main content


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 12:42
Harald Krapfenbauer is currently offline Harald KrapfenbauerFriend
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:ssh-only configuration with Plink
Goto Forum:
  


Current Time: Thu Apr 18 23:28:50 GMT 2024

Powered by FUDForum. Page generated in 0.01504 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top