Re: php + lynx + grep

From: Date: Tue, 06 Apr 2004 17:54:39 +0000
Subject: Re: php + lynx + grep
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-182510@lists.php.net to get a copy of this message
On Apr 6, 2004, at 12:53 PM, Brian L. Ollom wrote:
Try.... $output = `lynx --source http://weather.noaa.gov/weather/current/KTOL.html |grep -v '41-35-19N' |grep TOL | head -n 1` Those are backticks, not single quotes surrounding the command.
I use following to retrieve output with Lynx: $out = lynx -dump -source "http://localhost"`;
Backticks didn't work either. I got it to work by using a cron to > the info into a text file and then include()'d the text file in the website, but I'd rather not have to rely on the cron job if I don't have to. ----------------------------------------------------------------
| Brian Ollom                  |                               |
| NiteHawke.Com                |  http://www.nitehawke.com/    |
| An Authorized Firefly Dealer | email bollom@nitehawke.com | ---------------------------------------------------------------- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#182510) next »