php3-list | 199807
Date: 07/14/98
- Next message: Adam Roderick: "[PHP3] some more socket trouble"
- Previous message: Jim Kraai : "Re: [PHP3] Expect-Tools for socket communication"
- In reply to: David Deutsch: "[PHP3] Example of du"
- Next in thread: Christopher Curtis: "RE: [PHP3] Example of du"
- Reply: Christopher Curtis: "RE: [PHP3] Example of du"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 .
If you want to get rid of the ' .', you can use:-
du -s | awk ' { print $1 } '
3112
You could then exec() the command.
I think du is one of the commands that differs per O/S.
> --D
Cheers!
Brian
-- 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
- Next message: Adam Roderick: "[PHP3] some more socket trouble"
- Previous message: Jim Kraai : "Re: [PHP3] Expect-Tools for socket communication"
- In reply to: David Deutsch: "[PHP3] Example of du"
- Next in thread: Christopher Curtis: "RE: [PHP3] Example of du"
- Reply: Christopher Curtis: "RE: [PHP3] Example of du"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

