#!/bin/rc if(~ $1 v){ peep $0 exit } echo ' basic

Basic Properties

Invoked Working direcory: pwd

The working directory of CGI is the location of the program.

pwd: ' pwd echo '

Arguments: echo $0

' echo $0 echo '

Arguments: echo $*

' echo $* echo '

ls -l

' ls -l echo '

ls -l /

Note that many direcories in "/" is hided. Confirm "/usr" and "/adm" are not there. ' ls -l / echo '

ls -l /doc

Pegasus has a sigle name for document root. The name is "/doc". All users have same document root. Confirm that you cannot find the documents of other users under "doc".

' ls -l /doc echo '


ls -l /lib

' ls -l /lib echo '

lc /bin

Look at text2html and formparse. Note that the files originally in /usr/web/bin are seen here.' lc /bin echo '

lc /net

"/net" is necessary when we use authentication scheme. However some evil minded CGIs may use it for some evil purpose. Therefore names bellow "/net" is unmounted. Confirm:

' ls -l /net/* cat<<-eof-


Diagnostics

If you have errors such as:
rc: can't open #e/status
rc: can't open #e/0
rc: can't open #e/*
then your Kernel is old. Replace new one.


see this script -eof-