Michelle Konzack wrote:
> Hello Shawn,
> 
> Am 2009-01-29 15:34:41, schrieb Shawn McKenzie:
>> exec(escapeshellcmd("echo '$BUILDLOG' | head -n 11"), $TMP_DATA);
>>
>> There are quotes or backticks or something in $BUILDLOG.
> 
> Thanks for it, now I have an array but the "|head -n 11" is ignored  and
> my arrays have up to several 10.000 elements...
> 
> Also if I like to continue processing,it does not more work because  the
> backslashes...

$BUILDLOG = escapeshellcmd($BUILDLOG);

exec("echo \"$BUILDLOG\" | head -n 11"), $TMP_DATA);


-- 
Thanks!
-Shawn
http://www.spidean.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to