Remote Execution of Eclipse Perl

This question is more about eclipse than programming. But any programmer who used eclipse should have some source data for me. Here is my requirement:

  • I have eclipse (with EPIC) installed on my Windows 7 PC. I don’t have any perl binary running on a Windows PC, nor am I going to install it.
  • I have perl and the necessary modules installed in a remote Linux box.
  • So my question is: Can I use eclipse on my Windows 7 PC before writing / executing / debugging perl programs in a remote Linux box ?

I already went through the articles:

http://www.epic-ide.org/guide/ch06s02.php#N10812

Run the Eclipse EPIC Perl Plugin on the remote project / files

But I can not correctly interpret the information provided in the links above. In other words, it does not work for me, or my use case is different from what is described in these links.

So, is it possible to configure eclipse to my requirement as described above? If so, could you please give me guidance on how to achieve it. If not, is there any other workaounrd to achieve the same. I'm sure someone must have faced a similar situation.

thanks

+6
source share
2 answers

So, I got the job after a long time, as shown below. I kind of study Eclipse. So, inserting the information here so that I will not forget it again :)

  • Download Eclipse on Windows

  • You do NOT need to install any Perl windows, for example, activate, strawberries ... etc.

  • Install the EPIC plugin for Perl: http://www.epic-ide.org/guide/ch01s02.php

  • Make sure that the remote system explorer is installed: File-> other-> Remote system explorer.

  • If you did not find RSE in the above location, then it is not installed, and you need to install it: http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.rse.doc.user/ gettingstarted / g1installing.html

  • Open the Remote System Explorer perspective (Window-> open perspective-> other-> Remote System Explorer)

  • Create a connection to the Linux box: in the RSE perspective, click the icon that looks like an inverted "T"

  • Follow the instructions in the wizard and provide the necessary information. (In this wizard, for several issues you should choose from DStore, ssh and FTP)

  • I chose ssh everywhere, because I don’t know what DStore is

  • Upon completion, you will see a new connection on the left side

11. Click on "SSH Terminals" and click on "Connect / launch Terminal"

  • Provide a password for the Linux user, and you will get a shell below. This is the ssh shell of your Linux server, and you can use it just like PuTTy.

  • Now, on the left side, expand your server and you can view the Linux Server directory structure. You can create a new Perl file and then start writing a script

  • Here the EPIC Plug-in will help you in terms of IDE (syntax color, auto-complete ... etc)

  • Save the file.

  • Now, to execute it, go to the SSH shell that you opened above and run "perl filename.pl". He will give you a way out.

I like this method. This way you can run any script (Perl, python, shell ... etc.) on the remote Linux server and use the power of eclipse to help you write / edit the code. There is no need to install any Perl / python binaries in the local window window.

Thanks.

+4
source
  • Check if you can write a simple perl script in the win field with eclipse. No need to run. This is necessary so that you can use the epic without the perl interpreter.
  • Copy the entire Perl source associated with Project from a remote window to a local box.
  • Create a Perl project, instead of using the default location point to the source location in the local field.
  • Now you can view the project files.
  • Click "Debug"> "RemotePerlDebug", from here follow the instructions given in the first URL that you are linking to. EPIC-IDE
+1
source

Source: https://habr.com/ru/post/913492/


All Articles