On Wed, 18 Feb 2004 21:21:45 -0500 "Chakravarthy Cuddapah" <[EMAIL PROTECTED]> wrote:
> From the terminal I can do this by: > ssh [EMAIL PROTECTED] du -hs /home/user | awk '{print $1}' Hmm... that's a pretty scary setup. You can ssh as root? Without a password? I wouldn't want that kind of setup even if I'm using "authorized_keys" and stuff. Anyway... > The same does not work in php. I used system and also > shell_exec. Works only on localhost. But not remote system. Most likely it's because when you're running your (php) script you're NOT running as root. Try running the script as root (from the command line) and see what happens. -- - E - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php