Santos
> Sr. Unix System Administrator
> APS/Pinnacle West
> Phoenix, AZ USA
>
> -Original Message-
> From: Tony Frasketi [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 17, 2003 1:13 PM
> To: Bob Showalter; [EMAIL PROTECTED]
> Subject: Re: Problem with the
To: Bob Showalter; [EMAIL PROTECTED]
Subject: Re: Problem with the Unix 'du' command via perl script
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
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
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 ' 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'
Thanks for all the suggestions folks!
I had been trying to find the size of my entire web site by using the
'du -sb ' 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
> Hello Dan
> Thanks for the response. I tried your suggestion but I still
> get the differing sizes... So I'm still looking for a solution.
> > >my($size) = `du -sb `;
My suggetion just helped you get only the number of bytes it returned into $size
instead of the
Bytes, whitespace, and dir
-Original Message-
From: jandrspencer [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 7:31 PM
To: [EMAIL PROTECTED]
Subject: RE: Problem with the Unix 'du' command via perl script
Hello, Tony.
Try something like:
#!/usr/bin/perl -w
use strict;
my($size) = `du
Hello Dan
Thanks for the response. I tried your suggestion but I still get the
differing sizes... So I'm still looking for a solution.
Thanks again
Tony Frasketi
Dan Muey wrote:
>
> > I'm having a problem with the results of the Unix 'du'
> > command in that I get different results when I execu
> I'm having a problem with the results of the Unix 'du'
> command in that I get different results when I execute the
> 'du' command from the Unix command line...
>
>du -sb
>
> and when I execute the 'du' command from a Perl script using
> backtic statement.
>
>my($size) = `du -sb `