Re: diskusage

From: Date: Thu, 19 Feb 2004 02:21:45 +0000
Subject: Re: diskusage
Groups: php.general 
Request: Send a blank email to php-general+get-178200@lists.php.net to get a copy of this message
From the terminal I can do this by: ssh root@my_remote_server du -hs /home/user | awk '{print $1}' The same does not work in php. I used system and also shell_exec. Works only on localhost. But not remote system. Appreciate any help. ----Original Message Follows---- From: "John W. Holmes" <holmes072000@charter.net> Reply-To: holmes072000@charter.net To: Chakravarthy Cuddapah <cuddapah@hotmail.com> CC: php-general@lists.php.net Subject: Re: [PHP] diskusage Date: Mon, 16 Feb 2004 15:17:52 -0500 Chakravarthy Cuddapah wrote:
In php I want to know space used (du) by user on a remote system. Can anyone pls tell me how this can be done.
Just call du through exec(). -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php _________________________________________________________________ Take off on a romantic weekend or a family adventure to these great U.S. locations. http://special.msn.com/local/hotdestinations.armx

« previous php.general (#178200) next »