Question: Program Assignment 3 How to create your CGI environment 1. cd $HOME 2. mkdir public_html 3. chmod 705 public_html 4. cd $HOME/public_html 5. mkdir itec400
Program Assignment 3
How to create your CGI environment
1. cd $HOME
2. mkdir public_html
3. chmod 705 public_html
4. cd $HOME/public_html
5. mkdir itec400
6. chmod 705 itec400
7. cd $HOME/public_html/itec400
8. mkdir CGI
9. chmod 705 CGI
How to test your CGI environment (by running myScript.cgi)
1. copy the following CGI script into your directory: cp /export/home/dandrear/public_html/itec400/CGI/myScript.cgi $HOME/public_html/itec400/CGI
2. Set permissions as follows: chmod 705 $HOME/public_html/itec400/CGI/myScript.cgi
3. Try executing myScript.cgi by using the following URL in your browser: http://cs.franklin.edu/~your-login-id/itec400/CGI/myScript.cgi For example, if your cs.franklin.edu login ID is smith23, then you would use the following URL: http://cs.franklin.edu/~smith23/itec400/CGI/myScript.cgi The tilde character ~ must be part appear before your login ID in the URL.
4. You should now see a screen that looks something like:
Requirements
1. Create your file in your CGI directory using the filename: sysInfo.cgi
2. Your CGI script must display a set of radio buttons that allows the user the choice of displaying: a. Up Time (default choice) this displays the duration of time that cs.franklin.edu has been up since the last reboot. This information can be derived from the UNIX/Linux uptime command (see man page for uptime). b. Local Server Time This choice allows the user to see the local server time (refer to the CGI lecture)
3. Set the permissions on your script as follows: chmod 705 $HOME/public_html/itec400/CGI/sysInfo.cgi
4. To run your script, you must use the following URL with yourLOGNAME. http://cs.franklin.edu/~your-login-id/itec400/CGI/sysInfo.cgi
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
