RE: [PHP] Disk Usage with system()
| From: | Jason Cox | Date: | Fri, 20 Oct 2000 23:19:00 +0000 |
| Subject: | RE: [PHP] Disk Usage with system() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-21509@lists.php.net to get a copy of this message | ||
I've tried that too. I'm running Redhat. You are right though. One is
/usr/bin/du while the other is /bin/df.
Jason
> -----Original Message-----
> From: Ashley M. Kirchner [mailto:ashley@pcraft.com]
> Sent: Friday, October 20, 2000 5:15 PM
> To: jasonc@webpipe.net
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Disk Usage with system()
>
>
> Jason Cox wrote:
>
> > echo system("du /home");
> >
> > but it doesn't work. If I change the command to "df" it works.
> Anyone know
> > why "du" wouldn't work?
>
> Try issuing it with the full path. As far as I know, 'df'
> and 'du' are in
> different locations, and your web server may not have both mapped.
>
> AMK4
>
> --
> W |
> | I haven't lost my mind; it's backed up on tape somewhere.
> |____________________________________________________________________
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Ashley M. Kirchner <mailto:ashley@pcraft.com> .
> 303.442.6410 x130
> SysAdmin / Websmith . 800.441.3873 x130
> Photo Craft Laboratories, Inc. . eFax 248.671.0909
> http://www.pcraft.com . 3550
> Arapahoe Ave #6
> .................. . . . . Boulder, CO 80303, USA
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
_______________________________________________________
Site Design, Hosting, and E-Commerce at www.webpipe.net