OK, I lied :) I don't want the raw output, I want to be able to pick the parts of the output that I want and display that. Thanks -Greg
"Martin Towell" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > in that case, try passthru() > > -----Original Message----- > From: Greg [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 18, 2002 1:45 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] php / unix functions > > > I just want to display the output of 'uptime' and 'df' on a php page > /Greg > > "Andy Turegano" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Well, what do you want them to do? > > > > > > On Wed, 18 Dec 2002, Martin Towell wrote: > > > > > the only other way I know is to use: $output = `$cmd`; (ie, backticks) > > > > > > -----Original Message----- > > > From: Greg [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, December 18, 2002 1:27 PM > > > To: [EMAIL PROTECTED] > > > Subject: [PHP] php / unix functions > > > > > > > > > Hi- > > > Is there a built in way, besides using exec and system, to get the > output > > > from commands like 'uptime' and 'df' on a linux system? Thanks! > > > -Greg > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php