In these web pages I will try to show how you can write simple CGI scripts to do processing over the web. We start off with really basic stuf like HTML element-generation in the next section and then go on to look at methods to upload files, call webpages from within a script, plot data from within a script and so on so forth.
If you are not sure about the server you should work on or which directory you should be creating HTML files in (for L529 class folks) then please look at this page: ...docs/biokdd_init_stuff.html to start with.
Once you are logged into Biokdd as L529guest or yourself, please create your own directory, if it does not exist yet, by doing:
General: [L529guest@biokdd home2] $ [ -d /var/www/cgi-bin/some_dir_name_under_L529guest_if_you_are_using_it ]\ || mkdir /var/www/cgi-bin/some_dir_name_under_L529guest_if_you_are_using_it Example: [L529guest@biokdd home2] $ [ -d /var/www/cgi-bin/L529guest/agopu ] || mkdir /var/www/cgi-bin/L529guest/agopu
And then change to your CGI-bin directory by doing:
General: [L529guest@biokdd home2]\$ cd /var/www/cgi-bin/dir_you_created_here Example: [L529guest@biokdd home2]\$ cd /var/www/cgi-bin/L529guest/agopu or if you are using your own account... [L529guest@biokdd home2]\$ cd /var/www/cgi-bin/agopu
Check if you are on the right working directory:
[L529guest@biokdd agopu]\$ pwd /var/www/cgi-bin/L529guest/agopu
From this point on, we'll assume you are in this right working directory all through this document unless mentioned otherwise.