Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Debugging you scripts if you are getting errors

Quote Reply
Debugging you scripts if you are getting errors
You can debug you scripts and find out what the problem is by telnetting into your machine and change to the directory your script is in and running this from the command line: /usr/bin/perl -c scriptname.cgi (hit enter on your keyboard)
you might have to substitute your path to perl if the above is not you perl path for instance on my server you even have to name the perl version or my scripts won't run. I have to give my path as /usr/bin/perl5.00404


------------------
Quote Reply
Re: Debugging you scripts if you are getting errors In reply to
Thanks for the tip...this has been discussed before...

And to be specific...you need to do the following at the telnet command prompt:

1) Connect to Directory:

Code:
cd /cgi-bin/links/

2) Check syntax of file:

Code:
perl -c scriptname.cgi

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.