** Start of listing of h1-perl.cgi ** #!/usr/bin/perl print "Content-type: text/plain\n\n"; $currdate = `date`; chop($currdate); print "The date&time is $currdate in California currently.\n\n"; $cmd = 'echo $REMOTE_ADDR'; $ipnum = `$cmd`; chop($ipnum); print "The IP number $ipnum is where your client/browser is located.\n\n"; $cmd = 'echo $PATH'; $pathval = `$cmd`; chop($pathval); print "The PATH is $pathval currently\n(the only environment variable common to both CGI and login).\n"; ** End of listing of h1-perl.cgi ** Here is the directory entry for that file: -rwx------ 1 rem user 453 Aug 26 2004 h1-perl.cgi ^ Note user execute permission needed for all CGI scripts.