CGIのサンプル


ディレクトリ表示のサンプル(readdir)

code01.cgi
code01.txt
codetbl1.pl
codetbl1.txt
codetbl2.pl
codetbl2.txt
com01.cgi
com01.txt
dir01.cgi
dir01.txt
env01.cgi
env01.txt
file01.cgi
file01.csv
file01.txt
file02.cgi
file02.csv
file02.txt
form01.cgi
form01.txt
form02.cgi
form02.txt
hellocl.txt
hellodmp.txt
hellosv.txt
libcgi.pl
libcgi.txt
makefile.txt
perl.txt
prn01.cgi
prn01.txt
sub01.cgi
sub01.txt
tbl01.cgi
tbl01.txt
time01.cgi
time01.txt

ディレクトリ表示のサンプル(ls)

total 148
-rwxr-xr-x  1 usr_ash users 1507 Mar  7  2002 code01.cgi
-rw-r--r--  1 usr_ash users 1507 Mar  7  2002 code01.txt
-rw-r--r--  1 usr_ash users 3022 Mar  7  2002 codetbl1.pl
-rw-r--r--  1 usr_ash users 3021 Mar  7  2002 codetbl1.txt
-rw-r--r--  1 usr_ash users 2734 Mar  7  2002 codetbl2.pl
-rw-r--r--  1 usr_ash users 2734 Mar  7  2002 codetbl2.txt
-rw-------  1 usr_ash users  880 Mar  7  2002 com01.cgi
-rw-r--r--  1 usr_ash users  880 Mar  7  2002 com01.txt
-rwxr-xr-x  1 usr_ash users  651 Mar  7  2002 dir01.cgi
-rw-r--r--  1 usr_ash users  651 Mar  7  2002 dir01.txt
-rwxr-x---  1 usr_ash users  373 Mar  7  2002 env01.cgi
-rw-r--r--  1 usr_ash users  373 Mar  7  2002 env01.txt
-rwxr-xr-x  1 usr_ash users  535 Mar  7  2002 file01.cgi
-rw-r--r--  1 usr_ash users  105 Mar  7  2002 file01.csv
-rw-r--r--  1 usr_ash users  535 Mar  7  2002 file01.txt
-rwxr-xr-x  1 usr_ash users  705 Mar  7  2002 file02.cgi
-rw-r--r--  1 usr_ash users  147 Mar  7  2002 file02.csv
-rw-r--r--  1 usr_ash users  705 Mar  7  2002 file02.txt
-rwxr-xr-x  1 usr_ash users 2041 Mar  7  2002 form01.cgi
-rw-r--r--  1 usr_ash users 2041 Mar  7  2002 form01.txt
-rwxr-xr-x  1 usr_ash users 2789 Mar  7  2002 form02.cgi
-rw-r--r--  1 usr_ash users 2789 Mar  7  2002 form02.txt
-rw-r--r--  1 usr_ash users 1600 Mar  7  2002 hellocl.txt
-rw-r--r--  1 usr_ash users 2005 Mar  7  2002 hellodmp.txt
-rw-r--r--  1 usr_ash users 2047 Mar  7  2002 hellosv.txt
-rw-r--r--  1 usr_ash users 1144 Mar  7  2002 libcgi.pl
-rw-r--r--  1 usr_ash users 1144 Mar  7  2002 libcgi.txt
-rw-r--r--  1 usr_ash users  184 Mar  7  2002 makefile.txt
-rw-r--r--  1 usr_ash users 1371 Mar  7  2002 perl.txt
-rwxr-x---  1 usr_ash users  538 Mar  7  2002 prn01.cgi
-rw-r--r--  1 usr_ash users  538 Mar  7  2002 prn01.txt
-rwxr-xr-x  1 usr_ash users  424 Mar  7  2002 sub01.cgi
-rw-r--r--  1 usr_ash users  424 Mar  7  2002 sub01.txt
-rwxr-xr-x  1 usr_ash users  706 Mar  7  2002 tbl01.cgi
-rw-r--r--  1 usr_ash users  706 Mar  7  2002 tbl01.txt
-rw-------  1 usr_ash users  565 Mar  7  2002 time01.cgi
-rw-r--r--  1 usr_ash users  565 Mar  7  2002 time01.txt


このCGIのソース:dir01.cgi