[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.dltk] Re: Launching Remote Files

Hi Sheela,

I think this issue belongs to RSE level, though it should be possible to implement workarounds in DLTK too.

Are you communicating to your host over the ssh protocol? Could you please test if you are able to execute commands over ssh without additional prompt using "ssh user@host command"

If it works then it means ssh "exec" channel should be used instead of "shell" channel being used by RSE now.

Depending of the result of the check it should be possible to identify the correct way to proceed with this issue.

Regards,
Alex

Sheela wrote:

Hi, I am using eclipse 3.4.1 with S1.0M4 DLTK and RSE-SDK-3.0.0

In my IDE,I am able to create a project in remote location (unix) with the help of Remote System Explorer.I am able to create scripts under that project in remote location. I have set interpreter details of remote location and when I try to run the script , it succesfully forms the command line and fires it.

I tried to debug RSEExecEnvironment.exec() method from org.eclipse.dltk.rse.core plugin and added System.out.println() in MyHostShellProcessAdapter.shellOutputChanged() method.

Here i observed that after logging to the unix terminal, it fires run commandline immediately.
But in our case, loggin is a 2 step process:
1. It asks for login/password details
2. It shows a module area selection menu. We have to give module area number as user input and press enter.
Only after these steps, the command prompt is made available. Hence, there is a mismatch in firing command.


Effectively, the system hangs and we are not able to run/debug remote scripts. Is there any solution to handle this situation? Can we somehow get a handle at this point to customise the method to follow our 2 step login procedure into unix terminal and then fire commands ?

Please help.

-Sheela