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

Re: [MacPerl] Mac to Unix & back?



3 simple things can help you debug your script and environment in UNIX:

1. Check that your script compiles with the command: perl -c myscript.cgi

2. Run it from the command line. Since it uses CGI.pm you can hand it
whatever variables you like.

3. Check that you can execute a script from the web. Use the simplest
script possible, for instance:

#!/usr/bin/perl
# script to send users to another location. cws 1996
print "Location: http://www.someserver.com/\n\n";
exit;

Call this script test.cgi or test.pl and place it in the directory where
your script is located. Try calling it with your browser. If it works,
you'll get redirected. If not, then there is a problem running scripts from
the web. (check your .htaccess and permissions).

Dept of Molecular and Cell Biology      "Information wants to be free."
UC Berkeley  * Kane Lab 614 Barker Hall



***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch