Passthru with Grep and Awk?

From: Date: Thu, 15 Jan 2004 22:06:46 +0000
Subject: Passthru with Grep and Awk?
Groups: php.general 
Request: Send a blank email to php-general+get-174721@lists.php.net to get a copy of this message
I'm having problems getting the following passthru statement to work. It works fine with the just the grep command. Help!!!! <?php echo "<pre>\n"; passthru('/usr/bin/grep " c=2048" " c=32" " c=2" /var/log/messages | /usr/bin/awk "{print $1 $3 $5}" '); ?>

« previous php.general (#174721) next »