[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Send Arg to MacPerl from AS



Thank you very much Chris, but is there any way to test a cgi script 
without installing an entire webserver?

Chris

I respect the idea of God too much to hold it responsible
for a world as absurd as this one.
                
                        -Georges Dumahel

On Fri, 13 Sep 1996, Chris Nandor wrote:

> At 10:14 AM 9/13/96, C. Todd Fogarty wrote:
> >Would you happen to know how I can run cgi perl scripts from my powermac
> >inorder to test them? What I am hung on is not knowing what the html tag
> >should look like becuase I am unsure about mac directories. Also, what
> >should the first line in the perl script look like, and does the perl
> >program have to be anywhere special? For example, if I put an alias of
> >perl 5.0 in a folder on the desktop and put the perl cgi script in that
> >directory as well and the test html page in there as well. The html page
> >seems to call the perl script fine, but when it executes it merely prints
> >out the perl script rather than run it.
> 
> 
> You need to have an HTTP/Web Server like WebStar or MacHTTP.  Then you need
> to save your script as a CGI from MacPerl using the MPCGI glue that is
> available where MacPerl is available.
> 
> MacPerl itself can be anywhere, but the script has to be in the HTTP
> server's designated cgi-bin directory.  Well, an alias to the script could
> be in the directory, too.
> 
> 
> 
> #================================================================
> perl -e 'srand();if(rand>.5){$i=0;foreach(@ARGV){@$i=split(//);$z
> [$i]=0;foreach$l(@$i){$s[$i][$z[$i]]=$l;$z[$i]++;}$i++;}foreach$m
> (@s){foreach$g(@{$m}){print$g}print" ";$m++}}else{print(join(" ",
> @ARGV))}print"\n"' McClellan Clan Motto: Think On
> 
> Chris Nandor                                       pudge@pcix.com
> PGP Key 0xB76E72AD                    http://pudge.petersons.com/
> 
> 
>