Bug 369060 - Runnig script on remote system
Summary: Runnig script on remote system
Status: ASSIGNED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: dsdp.tm.rse-inbox CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: bugday, helpwanted
Depends on:
Blocks:
 
Reported: 2012-01-19 06:49 EST by sparrow Mising name CLA
Modified: 2012-01-20 04:22 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sparrow Mising name CLA 2012-01-19 06:49:35 EST
It would be nice to have ability to run "Eclipse External Tool" on a remote system
Comment 1 Martin Oberhuber CLA 2012-01-19 07:51:59 EST
You can use the C/C++ Remote Application Launch for that purpose ... with some limitations:

- You need some CDT project in the workspace with an executable
- Output won't be printed to a Console

I suppose that taking the C/C++ Remote Application Launch and converting it into a "Run External Tool on Remote Host" External Tool Launch simply by stripping out all the CDT debug functionality should be fairly straightforward.

The biggest question is probably how the remote I/O gets into the Eclipse Console. Looking at the TM "Local Terminal" implementation which uses an External Tool Launch under the hood may help.

Anna, what do you think ?
Comment 2 Martin Oberhuber CLA 2012-01-19 07:53:08 EST
PS do you have any concrete use cases ?

Note that any files / resources you select in Project Explorer are not going to be available on the remote by default.
Comment 3 sparrow Mising name CLA 2012-01-19 08:18:10 EST
(In reply to comment #2)
> PS do you have any concrete use cases ?
> 
> Note that any files / resources you select in Project Explorer are not going to
> be available on the remote by default.

We are working on a PHP project on a remote development server (synced via SFTP) and sometimes we want to run some bash script on the server. We can of course launch ssh terminal but it would be easier to register an external tool in the run menu - perhaps in external tools configuration there could be an RSE node (similarily to "Run Program", "Ant Build")?
Comment 4 Anna Dushistova CLA 2012-01-19 12:25:00 EST
(In reply to comment #1)
> You can use the C/C++ Remote Application Launch for that purpose ... with some
> limitations:
> 
> - You need some CDT project in the workspace with an executable
> - Output won't be printed to a Console
> 
> I suppose that taking the C/C++ Remote Application Launch and converting it
> into a "Run External Tool on Remote Host" External Tool Launch simply by
> stripping out all the CDT debug functionality should be fairly straightforward.
> 
> The biggest question is probably how the remote I/O gets into the Eclipse
> Console. Looking at the TM "Local Terminal" implementation which uses an
> External Tool Launch under the hood may help.
> 
> Anna, what do you think ?

I agree, I'd probably go this very route.
Comment 5 Martin Oberhuber CLA 2012-01-20 03:59:21 EST
I'm going to mark this "helpwanted" and assign to the inbox, since it looks like a nice enhancement that somebody in the Community could easily implement. 

Of course committers are also welcome to take this :)

sparrow, do you think that using the existing C/C++ Remote Launch would be an OK workaround for you for now ? (I know that some customers of ours in fact use that).
Comment 6 sparrow Mising name CLA 2012-01-20 04:22:28 EST
(In reply to comment #5)
> I'm going to mark this "helpwanted" and assign to the inbox, since it looks
> like a nice enhancement that somebody in the Community could easily implement. 
> 
> Of course committers are also welcome to take this :)
> 
> sparrow, do you think that using the existing C/C++ Remote Launch would be an
> OK workaround for you for now ? (I know that some customers of ours in fact use
> that).

I would try it.