At Wed, 14 Mar 2001 10:19:42 +0000 (GMT), Mark Fowler <[EMAIL PROTECTED]> wrote:
> > <Finding out where perl is> 
> 
> <parody>
> Stop, stop, this script archive is not ready yet!  Where are the Hello
> world examples?  Where are the detailed instructions?  And why are you
> actually working on these scripts yet!
> </parody>
> 
> You're all getting ahead of yourselves.  We need to write a set of
> helloWorld scripts that the script user can upload first to find out 
> the basic facts about their server and check everything is working.
> 
> a) You have multiple copys of the script with different shebang lines 
> on the top.  Only one of these will work and one of the things it'll 
> do is print our is "The first line of programs you upload to this 
> server should be #!/blah/perl"
> 
> b) It checks your perl version is reasonable.  Actually it probably 
> should do this before a) in case there are several versions installed.
> 
> c) It tests if you've got a borken version of CGI.pm (or CGI.pm at 
> all) by looking at version numbers, etc.  Same for other modules.
> 
> d) It links to an image in the same directory as itself and explains 
> that if the image isn't viewable then you do not have inplace cgi and 
> the things you have to know about this
> 
> e) It prints out the time, and GMT time thus highlighting to the user 
> any problems they might have if this is wrong
> 
> f) It prints out a hunk of diagnostic information (e.g. perl version,
> module versions, url, etc, etc)

My ms-env script does a lot of this. 
<http://www.mag-sol.com/Scripts/ms-env-2.0.tar.gz>

Mind you, it _does_ rely on CGI.pm being available.

Dave...

Reply via email to