This tutorial demonstrates how to write a CGI script that calls an Iraf program. It discusses two scripts. Shellwars is a short script demonstrating the basic features of Perl. My_syn is an demonstration of how to run an Iraf task from a CGI script. This tutorial assumes that you are already somewhat familiar with Perl. If you are not, I would suggest taking the NCSA Perl Tutorial before you proceed. Please note that the line numbers which precede the example source code in this tutorial are not part of the script but have been added by me to make the explantion of the code easier.
Table of Contents
- Introduction
- Shellwars
- My_syn Introduction
- The HTML Form
- Configuration
- Main Procedure
- Form checking
- Writing the Parameter File
- Running the Synphot Task
- Formatting the Results
- Error Output
- HTML Output
- Reading the CGI Form
- Decoding CGI Input