in reply to Re: Command line options in EPIC (Perl + Eclipse)
in thread Command line options in EPIC (Perl + Eclipse)

I've managed to get a shell interface on my Epic IDE, so that I can run perl code and check output without having to revert to a command line interface. You can pass an argument(s) to your code this was also. Btw, I'm using WinXP with ActivePerl installed. Here's how its done: 1. Run->External Tools->External Tools Configutations... 'Main' tab: *********** 2. 'Name' field -> enter 'myShell' 3. 'Arguments' field -> enter: /C "cd ${container_loc} && perl -w ${resource_name} ${input_var1}" (note, for a full breakdown of the above variables, check out the url 'http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.platform.doc.user/concepts/concepts-exttools.htm') 4. The above variable 'input_var1' is one I created and I'll explain that below 'Common' tab: ************* 5.In the 'Common' tab, ensure the following radio buttons/tick boxes are checked: - Local file - Default - inherited (Cp1252) - External Tools - Allocate Console (necessary for input) - Launch in background 'Main' tab: *********** 6. Below the 'Arguments' field, click 'Variables...' button 7. Edit Variables 8. New 9. Enter 'input_var1' in the 'Variable' column and a default value in the 'Value' column' 10. OK, OK.. 11. Click 'Apply' and 'Run', and this will pass the value held in 'input_var1' to your code (can process in the usual way by dereferencing @ARGV[]->$ARGV[0]) 12. When you want to alter value held in 'input_var1' and hence value passed into your code, do the following: 12a. Window->Preferences 12b. You're now in the 'String Substitution' facility, where you can happily edit and save changes to 'input_var1' Hope this helps :)
  • Comment on Re^2: Command line options in EPIC (Perl + Eclipse)

Replies are listed 'Best First'.
Re^3: Command line options in EPIC (Perl + Eclipse)
by Mike-oh (Initiate) on May 22, 2009 at 13:27 UTC
    Apologies guys, I'll make it more legible: I've managed to get a shell interface on my Epic IDE, so that I can run perl code and check output without having to revert to a command line interface. You can pass an argument(s) to your code this was also. Btw, I'm using WinXP with ActivePerl installed. Here's how its done: 1. Run->External Tools->External Tools Configutations... 'Main' tab: *********** 2. 'Name' field -> enter 'myShell' 3. 'Arguments' field -> enter: /C "cd ${container_loc} && perl -w ${resource_name} ${input_var1}" (note, for a full breakdown of the above variables, check out the url 'http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.platform.doc.user/concepts/concepts-exttools.htm') 4. The above variable 'input_var1' is one I created and I'll explain that below 'Common' tab: ************* 5.In the 'Common' tab, ensure the following radio buttons/tick boxes are checked: - Local file - Default - inherited (Cp1252) - External Tools - Allocate Console (necessary for input) - Launch in background 'Main' tab: *********** 6. Below the 'Arguments' field, click 'Variables...' button 7. Edit Variables 8. New 9. Enter 'input_var1' in the 'Variable' column and a default value in the 'Value' column' 10. OK, OK.. 11. Click 'Apply' and 'Run', and this will pass the value held in 'input_var1' to your code (can process in the usual way by dereferencing @ARGV[]->$ARGV[0]) 12. When you want to alter value held in 'input_var1' and hence value passed into your code, do the following: 12a. Window->Preferences 12b. You're now in the 'String Substitution' facility, where you can happily edit and save changes to 'input_var1' Hope this helps :)