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 gersmann
Messages: 77
Registered: July 2009
Member
hi guys,

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

it seems to me that

RSECorePlugin.getTheSystemRegistry().addSystemResourceChange Listener(
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(),
ss,
remoteFile,
new NullProgressMonitor())
) {
// gets never called ...
public void handleCommandFinished(String cmd) {
System.out.println( "handleCommandFinished");
done = true;
}

// .. because output is never delivered via callback method
handleOutputChanged
public void handleOutputChanged(String command, Object output) {
System.out.println( "handleOutputChanged : " + output);
}
};
op.run();
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(
this);
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,

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


Current Time: Mon Sep 22 20:31:04 GMT 2014

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

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