RE: Different results Command Line/CGI

2004-02-03 Thread Dan Muey
> I have this script stolen and modified from somewhere Stealling is bad! :) > > #!/usr/bin/perl -w > use strict; > use File::Find; > print "Content-type: text/html\n\n"; > > my $u=shift; > my $sizes = 0; > # replace this with your absolute path > my $path = "/home/$u/"; > > find (sub {$si

Re: Different results Command Line/CGI

2004-02-02 Thread Ramprasad A Padmanabhan
Owen wrote: I have this script stolen and modified from somewhere #!/usr/bin/perl -w use strict; use File::Find; print "Content-type: text/html\n\n"; my $u=shift; my $sizes = 0; # replace this with your absolute path my $path = "/home/$u/"; find (sub {$sizes += -s ;}, $path); print "$sizes\n"; I

Different results Command Line/CGI

2004-02-01 Thread Owen
I have this script stolen and modified from somewhere #!/usr/bin/perl -w use strict; use File::Find; print "Content-type: text/html\n\n"; my $u=shift; my $sizes = 0; # replace this with your absolute path my $path = "/home/$u/"; find (sub {$sizes += -s ;}, $path); print "$sizes\n"; I am log