Need a free MP3 Player to listen to these clips ?
September 26th, 2002
Using WinSCP copy the file into your public_html file
Click on the image to enlarge.
Be sure to set the permissions such that everyone can read the file (chmod a+r index.html or right click on the uploaded file in winSCP and set the premissions to all read).
Using the information above, access your browser and enter the URL to access your page.
Creating a .pl PERL program
Audio (1.6M 3:32)
- The following program was called test.pl and stored in your home directory in your satrun.cecs.unt.edu account.
print "Hello World!\n";
- Using PuTTY you entered the following command 'chmod a+rx test.pl' to allow the program to be run.
- Making sure you are in your home directory (enter 'cd' if not sure and view the prompt -- see above) enter './test.pl' to execute your example (shown below).
Methods for creating PERL programs (NoteTab and PICO)
Audio (1M 2:15)
Three important things to remember
Audio (808k 1:43)
Creating a .cgi PERL program that outputs HTML
Audio (1.4M 3:14)
- Use Notetab to create the following program called test.cgi.
The "Content-type: text/html\n\n"; tells the system that you are about to receive an HTML file and it then knows how to handle it.
# there must be a blank line between the #!
# and the rest of the program
print "Content-type: text/html\n\n";
print "<h1>Hello World!</h1>\n";
- Use winSCP to copy test.cgi into your cgi directory in your satrun.cecs.unt.edu account.
- Using PuTTY change the premission of test.cgi for execution using the command 'chmod a+rx test.cgi'.
- Using your browser, I entered 'http://saturn.cecs.unt.edu/cgi-bin/gjones/test.cgi' to call up my example (shown below).
Discussion on Debugging CGI programs
Audio (484k 1:02)
- When accessing a CGI by the browser and it gives you an Internal Error or other error, then access the system via PuTTY and run the .cgi program using the command
./program_name.cgi If there are any errors in the perl program, running it from the terminal will display the lines and type of the error(s).
Copyright 2002, Dr. James G Jones