[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.dltk] Re: capturing output of remote run process

Hi Abhijit,

I suppose what problem is not in console. But in remote execution.

Could you please try to debug RSEExecEnvironment.exec() method from org.eclipse.dltk.rse.core plugin.
This method is called on command execution for remote host. To check that is works, please add System.out.println() in
MyHostShellProcessAdapter.shellOutputChanged() method. All output from RSE execution are came here.

Do you use ssh or dstore connection? Does your remote host contain "bash"?
We called it as command interpreter. This unifies passing of environment variables, etc.

Best regards,
Andrei Sobolev.


> Hi Andrei,
> Thank you for your help. I would reiterate our query to be more clear.
> 
> I have created my IDE for our domain language using DLTK framework
> (using eclipse 3.4M7 with 0.95RC2 DLTK and RSE-SDK-3.0RC1.) We have
> referred ruby IDE for the same.
> 
> -> 1) Do you use DLTK launching infrastructure? Or you have your own.
> We are using DLTK launching infrastructure.
> 
> -> 2) Does it not work only for Remote projects? And work for local.
> 
> Yes.   
> I have created scripts under both local as well as remote projects. I
> have set interpreter details for both locations (local and remote).
>     
> when I try to run the local script (in local project),it succesfully
> forms the command line and fires it and shows the output in console of
> IDE. But  when I try to run the remote script (in remote project),it
> succesfully forms the command line and fires it but does not show the
> output in console of IDE. i.e. It shows the output in the console only
> for scripts in local projects but not for scripts in Remote projects.
> 
> ->3) Do you want to use standard eclipse input/output console, provided
> by debug plugin? Or you want your own console?   
> 
> Yes, I want the output of scripts (for remote project) execution to be
> displayed in standard console provided by DEbugPlugin.
> I tried to set IDebugUIConstants.ATTR_CAPTURE_IN_CONSOLE to null in
> launch method of LaunchConfigurationDelegate in following way :
>     
>     launch.setAttribute(IDebugUIConstants.ATTR_CAPTURE_IN_CONSOLE, null);
>     
> Here launch is an object of ILaunch. But it doesn't work. Is this the
> right way or am I doing it wrongly?
>     
> Please Help.
> 
> Thanks & regards,
> Abhijit.
>