Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:handbook:development [2010/07/29 17:53] – linea | en:handbook:development [2016/10/24 14:24] (current) – IDE Geany replaced by Beaver hgt | ||
|---|---|---|---|
| Line 17: | Line 17: | ||
| </ | </ | ||
| - | Now that you have a new executable file, you can edit it. You can continue to stay in the terminal and use the Nano editor (Ctrl + x to save & exit) or IDE Geany to edit: | + | Now that you have a new executable file, you can edit it. You can continue to stay in the terminal and use the Nano editor (Ctrl + x to save & exit) or IDE Beaver |
| < | < | ||
| $ nano script.sh | $ nano script.sh | ||
| Or : | Or : | ||
| - | | + | |
| </ | </ | ||
| Here's a script that contains a variable NAME and displays the value with the echo command: | Here's a script that contains a variable NAME and displays the value with the echo command: | ||
| - | <code> | + | <file> |
| #!/bin/sh | #!/bin/sh | ||
| Line 33: | Line 33: | ||
| echo "$NAME is nice." | echo "$NAME is nice." | ||
| - | </code> | + | </file> |
| Once you have created/ | Once you have created/ | ||
| Line 54: | Line 54: | ||
| </ | </ | ||
| - | ===== Geany IDE ===== | + | ===== Beaver |
| - | Geany is an IDE or Integrated Development Environment. Geany is simple, | + | Beaver |
| - | === Launch Geany === | + | < |
| - | You will find Geany in the //menu --> Development --> Geany//. Once launched for the first time, you can adjust your preferences via Edit --> Preferences. You can also launch Geany via a terminal: | + | ===== Geany IDE===== |
| - | < | + | Geany is an IDE, or Integrated Development Environment. It is a simple, small and lightweight application, |
| - | Note when compiling | + | ==== Executing Geany ==== |
| + | |||
| + | You can install Geany: | ||
| + | |||
| + | < | ||
| + | |||
| + | After it runs for the first time, you can set your preferences through the menu //Edit// --> // | ||
| + | |||
| + | < | ||
| + | |||
| + | Note: when compiling source code, the //./configure// script offers the // | ||
| ===== Perl or Microperl - Code/use Perl scripts ===== | ===== Perl or Microperl - Code/use Perl scripts ===== | ||
| Line 78: | Line 88: | ||
| === Hello world! === | === Hello world! === | ||
| - | The purpose of this script is to display Hello World. You can start by creating the file and making it executable on the command line and then editing with IDE Geany. Note the script is called hello.pl, but you can name it as you see fit, with or without the .pl extension: | + | The purpose of this script is to display Hello World. You can start by creating the file and making it executable on the command line and then editing with Beaver. Note the script is called hello.pl, but you can name it as you see fit, with or without the .pl extension: |
| < | < | ||
| $ touch hello.pl | $ touch hello.pl | ||
| $ chmod +x hello.pl | $ chmod +x hello.pl | ||
| - | | + | |
| </ | </ | ||
| The first line of a Perl script begins by defining the path to the Perl interpreter, | The first line of a Perl script begins by defining the path to the Perl interpreter, | ||
| - | <code> | + | <file> |
| # | # | ||
| # | # | ||
| Line 94: | Line 104: | ||
| print "Hello World!\n"; | print "Hello World!\n"; | ||
| - | </code> | + | </file> |
| To execute and test the script: | To execute and test the script: | ||
| Line 105: | Line 115: | ||
| Once the server is properly configured, you can put your CGI in your // | Once the server is properly configured, you can put your CGI in your // | ||
| - | <code> | + | <file> |
| # | # | ||
| # | # | ||
| Line 111: | Line 121: | ||
| print "Hello World!\n"; | print "Hello World!\n"; | ||
| - | </code> | + | </file> |
| ===== Python ===== | ===== Python ===== | ||