Google
 

Shell Scripts - Part 09

Shell Scripts - Part 09


091-contactus.cgi
To process the contact us form data, email it to the designated recipient, and return a succinct thank you message.


092-contactus.html
A html helper file for script #91, contactus.cgi


093-photoalbum.cgi
A dynamic web photo album utility.


094-guestbook.cgi
To display the current guestbook entries, append a simple form for visitors to add their own comments, and accept and process new guest entries. Works with a separate data file that actually contains the guest data.


095-guestbook.txt
Data file for script #94, guestbook.cgi


096-counter.sh
A simple text-based page counter, with appropriate locking


097-page-with-counter.html
Html helper file for script #96, counter


098-streamfile.cgi
An output an HTML file, replacing the sequence ---countervalue--- with the current counter value.


099-updatecounter.sh
A tiny script that updates the counter file to the value specified. Assumes that locking is done elsewhere.



Given a one-line-per-entry datafile, this script will randomly pick one and display it. Best used as an SSI call within a Web page.

Shell Scripts - Part 08

Shell Scripts - Part 08


081-exchangerate.sh
Given a currency amount, convert it into other major currencies and show the equivalent amounts in each.


082-getexchrate.sh
To scrape the current currency exchange rates from CNN's money and finance Web site.


083-getstock.sh
given a stock ticker symbol, return its current value from the Lycos web site


084-portfolio.sh
To calculate the value of each stock in your holdings, then calculate the value of your overall portfolio, based on the latest stock market position.


085-changetrack.sh
To track a given URL, and if it's changed since the last visit, email the new page to the specified address.


086-showcgienv.sh
To display the CGI runtime environment, as given to any CGI script on this system.


087-logsearch.cgi
To given a search request, log the pattern, then feed the entire sequence to the real Yahoo search system.


088-yahoo-search.html
html helper file for script #70, logsearch.


089-getdope.sh
To grab the latest column of 'The Straight Dope' and mail it to the specified recipient


090-kevin-and-kell.cgi
Build a Web page on-the-fly to display the latest strip from the cartoon strip Kevin and Kell, by Bill Holbrook (Strip referenced with permission of the cartoonist)