RemoteCommandShellOperation seems not to work [message #578016] |
Thu, 27 November 2008 16:41 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.02992 seconds