Skip Navigation.

Directory List CGI

This CGI list the contents of the directories and directories. To use it, you'll need to create a CGI directory. You can create a directory in the shell using the command mkdir. Once you've made the CGI directory, you'll need to put the ls.cgi file into the CGI directory and the ls.txt file into your public_html directory.

The ls.cgi and ls.txt files are linked from here so that you can copy them into a text editor, change the references and styles if desired, and then save them into your CGI and public_html directories:

ls.txt
ls_cgi.txt
(Please note that this file is named ls_cgi.txt so that you'll be able to view it to copy it. You'll need to save it as ls.cgi for this to work.)

On the ls.cgi file, you will need to change the two spots that say 'YourName' to your actual name and to make sure you have it named ls.cgi. For the ls.txt file, you'll need to change the title. Make sure that your ls.cgi file is saved in a cgi directory and that the directory's permissions are set to be world executable. If you don't know how to do this, please see the IMAGE Lab assistant for help, or read the NWE pages on shell commands.

Back