|Re: Launching Remote Files [message #37700 is a reply to message #37628]
||Thu, 28 May 2009 07:56
| Alex Panchenko
Registered: July 2009
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.
> 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.
|Re: Launching Remote Files [message #38545 is a reply to message #38445]
||Wed, 01 July 2009 06:05
Registered: July 2009
We have upgraded our IDE to eclipse 3.5 (galileo) which uses dltk1.0 and
Here, when we try to launch(run/debug) the remote files,it forms a command
line and write it to a temporary shell script on the unix terminal and
then log in to the unix and tries to run that shell script using "exec
/bin/sh <temp_file>.sh" command.
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.
Is it possible to get handle to give the initial and final commands before
and after the actual "exec" command ? i.e if it is possible to customise
the command firing sequence ,so that after loggin in command firing
sequence will be :
<initial commands> (user will give this via some get method, say,
"exec /bin/sh <temp_file>.sh" command.
<finalcommands> (user will give this via some get method, say,
Powered by FUDForum
. Page generated in 0.02196 seconds