[Chicago-talk] Script creates bad file when not run as root

Jim Jacobus JJacobus at PonyX.com
Wed Dec 13 15:48:54 PST 2006


I really install the files as subdirectories off of cgi-bin, since on 
other systems I don't have access to the site/lib. For me this works 
best since I have to do things across multiple systems.

Files look like this. I turned on the x bit during my debugging.
./Parse:
total 88
drwxr-xr-x  2 matrix01 apache  4096 May  3  2006 .
drwxr-xr-x  9 matrix01 apache  4096 Dec 13 13:58 ..
-rw-r--r--  1 matrix01 apache 77401 Apr  9  2003 RecDescent.pm

./Spreadsheet:
total 188
drwxr-xr-x  3 matrix01 apache   4096 Dec 13 14:46 .
drwxr-xr-x  9 matrix01 apache   4096 Dec 13 13:58 ..
drwxr-xr-x  2 matrix01 apache   4096 Dec 12 13:23 WriteExcel
-rwxr-xr-x  1 matrix01 apache 173941 Dec 12 19:10 WriteExcel.pm

./Spreadsheet/WriteExcel:
total 352
drwxr-xr-x  2 matrix01 apache   4096 Dec 12 13:23 .
drwxr-xr-x  3 matrix01 apache   4096 Dec 13 14:46 ..
-rwxr-xr-x  1 matrix01 apache   6234 Dec 12 19:09 BIFFwriter.pm
-rwxr-xr-x  1 matrix01 apache   1722 Dec 12 19:09 Big.pm
-rwxr-xr-x  1 matrix01 apache   6816 Dec 12 19:09 Chart.pm
-rwxr-xr-x  1 matrix01 apache  22052 Dec 12 19:09 Format.pm
-rwxr-xr-x  1 matrix01 apache  51637 Dec 12 19:09 Formula.pm
-rwxr-xr-x  1 matrix01 apache  11221 Dec 12 19:09 OLEwriter.pm
-rwxr-xr-x  1 matrix01 apache  27683 Dec 12 19:09 Utility.pm
-rwxr-xr-x  1 matrix01 apache   2417 Dec 12 19:09 WorkbookBig.pm
-rwxr-xr-x  1 matrix01 apache  61893 Dec 12 19:09 Workbook.pm
-rwxr-xr-x  1 matrix01 apache 127156 Dec 12 19:09 Worksheet.pm

 >Is is a permissions problem with the directory/file? Or the library 
was installed as root and the user >cannot access it? Try getting 
return values from calls to Perl library. That might tell you 
something >important. Ignoring return values can really cause you 
unnecessary anxiety.
 >
 >Bradley


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.pm.org/pipermail/chicago-talk/attachments/20061213/2b8fa01c/attachment.html 


More information about the Chicago-talk mailing list