Home Blog Docs Tutorials Scripts Tests About

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

  1. Introduction
  2. Shellwars
  3. My_syn Introduction
  4. The HTML Form
  5. Configuration
  6. Main Procedure
  7. Form checking
  8. Writing the Parameter File
  9. Running the Synphot Task
  10. Formatting the Results
  11. Error Output
  12. HTML Output
  13. Reading the CGI Form
  14. Decoding CGI Input

Run the scripts

Source