Hi Bob Thanks for the response. I checked the system error log and didn't find any Permission Denied errors for the directory in question (xxxtemp).
Below is a listing of the directory which contains the offending subdirectory 'xxxtemp'. 'xxxtemp' was an older version of subdirectory 'temp'. There is a difference in the permissions, however. But the web server should have been able to read 'xxxtemp' since the world has 'read' permission. Is this not correct? drwxr-xr-x 3 tonysf bbsuser 512 Oct 27 2002 temp drwxrw-rw- 3 tonysf bbsuser 512 Oct 27 2002 xxxtemp ========= total 1282 drwxr-xr-x 6 tonysf bbsuser 1024 Jun 17 14:53 . drwxr-xr-x 31 tonysf bbsuser 2560 Jun 14 19:34 .. -rw-r--r-- 1 tonysf bbsuser 182 Apr 14 14:48 .htaccess -rw-r--r-- 1 tonysf bbsuser 176 Nov 11 2002 .xxxhtaccess drwxrwxrwx 2 tonysf bbsuser 2048 Oct 23 2002 database_saves -rw-r--r-- 1 tonysf bbsuser 3785 Oct 28 2002 dbi_subs.cgi -rw-r--r-- 1 tonysf bbsuser 263 Nov 11 2002 index.htm -rw-r--r-- 1 tonysf bbsuser 625 Oct 18 2002 msql_create_template.txt drwxr-xr-x 2 tonysf bbsuser 512 Dec 22 2001 new -rw-r--r-- 1 tonysf bbsuser 1072226 Oct 19 2002 plist20021019_161002.dump -rw-rw-rw- 1 tonysf bbsuser 8 Jan 2 2002 plist_output.txt -rwxr-xr-x 1 tonysf bbsuser 50067 Aug 18 2002 plistmaint.cgi -rw-r--r-- 1 tonysf bbsuser 21989 Aug 18 2002 plistmaint.pl -rwxr-xr-x 1 tonysf bbsuser 46883 Dec 25 2001 plistmaint_save_old.cgi -rw-r--r-- 1 tonysf bbsuser 1870 Oct 2 2000 plistmaint_test.dump -rw-r--r-- 1 tonysf bbsuser 0 Jun 17 14:53 print.txt -rw-r--r-- 1 tonysf bbsuser 1004 Dec 31 2001 stats.htm drwxr-xr-x 3 tonysf bbsuser 512 Oct 27 2002 temp -rwxr-xr-x 1 tonysf bbsuser 18608 Oct 22 2002 test1.cgi -rw-r--r-- 1 tonysf bbsuser 1901 Jan 2 2002 test1.txt -rwxr-xr-x 1 tonysf bbsuser 17691 Oct 22 2002 test1_save.cgi -rwxr-xr-x 1 tonysf bbsuser 481 Aug 18 2002 test2.cgi drwxrw-rw- 3 tonysf bbsuser 512 Oct 27 2002 xxxtemp -rwxr-xr-x 1 tonysf bbsuser 48415 Dec 26 2001 xxxxplistmaint.cgi =================== Bob Showalter wrote: > > Tony Frasketi wrote: > > Thanks for all the suggestions folks! > > > > I had been trying to find the size of my entire web site by using the > > 'du -sb <my-home-directory>' command in a Perl script to be executed > > from the Web. > > > > But I kept coming up with a diffence of 2,177,024 bytes between the > > output of the 'du' command when executed from the Perl script from the > > Web and when executed directly from the Unix command line. > > > > Output from 'su -sb' command from Perl script on Web: > > 83,250,176 bytes Output from 'su -sb' command from Unix Cmd Line: > > 85,427,200 Bytes > > > > 2,177,024 bytes short from the Perl script. > > > > I finally found the culprit that was causing the difference! I tracked > > this exact byte difference to a particular directory buried in the > > depths of my cgbin directory (it was an old directory that I no > > longer use). > > > > The size of this directory was 2,177,024 bytes from the output of the > > 'du' command when issued from the Unix command line BUT ... was ZERO > > bytes from the output of the 'du' command when issued from the Perl > > script on the Web! > > > > After I deleted this directory, the sizes of my entire website matched > > when measured from the Web or from the Unix shell!!! > > The directory was probably not readable by the web server user. If you check > your web server error logs, you'll probably see a "Permission denied" > message coming from du. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]