Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » RemoteCommandShellOperation seems not to work
RemoteCommandShellOperation seems not to work [message #578016] Thu, 27 November 2008 16:41
lars gersmann is currently offline lars gersmannFriend
Messages: 77
Registered: July 2009
hi guys,

i try (since ours ... :-) to figure out why my RemoteCommandShellOperation
does not work.

it seems to me that

RSECorePlugin.getTheSystemRegistry().addSystemResourceChange Listener(
not having an effect. the listener method is never called back.

not sure if this is important : i am working on a Local Linux connection.

source :

RemoteCommandShellOperation op = new RemoteCommandShellOperation(
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShel l(),
new NullProgressMonitor())
) {
// gets never called ...
public void handleCommandFinished(String cmd) {
System.out.println( "handleCommandFinished");
done = true;

// .. because output is never delivered via callback method
public void handleOutputChanged(String command, Object output) {
System.out.println( "handleOutputChanged : " + output);
op.sendCommand( host.getSystemType().isWindows() ? "set" : "env");

i crawled the newsgroup and found an example doing exactly the same like
me ... but it doesnt work on my machine.

i tried afterwards something like

RSECorePlugin.getTheSystemRegistry().addSystemResourceChange Listener(
final String cmd = getDelegate().getHost().getSystemType().isWindows() ?
"set" : "env";
shell.writeToShell( cmd);

but again my ISystemResourceChangeListener is never called back.

anyway - there was output via shell.listOutput(); ... but i really thought
i can get notified as output arrives.

could somebody help me out ? what i am doing wrong ?

many regards,

Previous Topic:SystemRemoteFolderDialog add action
Next Topic:Question on remote debugging
Goto Forum:

Current Time: Tue Jul 27 19:19:20 GMT 2021

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

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

Back to the top