Thread: perl for kindle
View Single Post
Old 02-16-2012, 09:54 PM   #12
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
To run the perl file, just execute "/path/to/index.cgi" on the device.
This will actually allow to check multiple things:

- whether permissions are set correctly (i.e., file is executable). For
all cgi-bin implementations I know, files must be executable (i.e. "chmod 755 /path/to/index.cgi"
- whether the shebang is correct
- whether the perl contents of the file can actually be correctly evaluated. I'm pretty sure that you'll get something like "CGI.pm not found" (or similar).
ixtab is offline   Reply With Quote