Question: Perl is an excellent language for writing web-based CGI scripts. The majority of the CGI scripts on the web are written in Perl. Because this

Perl is an excellent language for writing web-based CGI scripts. The majority of the CGI scripts on the web are written in Perl. Because this is such a popular application for the language, the module CGI is included to give you a very accessible interface for writing CGI scripts.

The Common Gateway Interface, or CGI, is the protocol that defines how data is passed to web servers and how forms are processed by web servers.

The form that sends the data is defined in HTML, with action and method defined. The HTML itself is not necessarily CGI; it could be a plain HTML web page. The URL to the CGI script is defined in the action parameter, and the method specifies whether a GET or POST is to be used by the browser to send the data to the server.

In this Lab Activity, you are to develop a Perl CGI script that takes a .automation file from the server, parses it and displays in a form on a browser; then updates the .automation file with any change made to the form from the client browser.

So you should first develop an HTML form that matches the data from the file. Be sure to check boxes and/or drop boxes for fields with know values such as true or false; and be sure to set the default values.

.automation file

[customer] id=306 ASU Foundation Parent [options] sftp_username=asu-sftp sftp_path=asu-sftp/home/asu-sftp/inbound batch_file_frequency=30 batch_file_namespec=^.*_To_IA_(CAD|FULL|TEST)_.*$ batch_email_file_receipt=eLinksSupport@asu.edu,ops@ia.com batch_email_general_error=ops@ia.com batch_email_file_failure=ops@ia.com batch_email_file_being_processed=ops@ia.com batch_email_file_successfull=ops@ia.com batch_additional_email_file_successfull=ops@ia.com Do you wish to use default account type overriding old logic (true/false)? false (default) sftp_whitelist_IPs_(comma delimited): 277.111.15.10,92.72.10.10 API_whitelist_IPs_(comma delimited):

Note: All email fields can take multiple, comma delimited email addresses

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!