Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

RE: [PHP3] Example of du From: Christopher Curtis (ccurtis <email protected>)
Date: 07/14/98

On Tue, 14 Jul 1998, Brian S. Craigie wrote:

> On 15-Jul-98 David Deutsch wrote:
> > Could some post a sample piece of code that uses the "du -s" command and
> > ereg's the output to display the byte count only.
>
> On Solaris 2.5 and hp-ux 10.20 :-
> # du -s
> 3112 .

Under Solaris, this reports the number of blocks used, not the number of
bytes. If you want a byte-count (in K), use "du -sk ." or divide by 2.

--
Christopher Curtis               - http://www.ee.fit.edu/users/ccurtis
Florida Institute of Technology  - System Administrator, Programmer
Melbourne, Florida  USA          - http://www.lp.org/

-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.tryc.on.ca/php3.html