Brian L. Ollom wrote:
lynx --source http://weather.noaa.gov/weather/current/KTOL.html
|grep -v '41-35-19N' |grep TOL | head -n 1

I need to get the output of the above command for a web site I'm
working on.  I've tried exec(), system() and neither seems to
work.

It's output should be something like this(it changes hourly):
  <TD><FONT FACE="Arial,Helvetica">  KTOL 061152Z 23004KT 10SM
  CLR 00/M07 A3007 RMK AO2 SLP187 T00001072 10017 21033 53005

Help!

----------------------------------------------------------------
| Brian Ollom                  |                               |
| NiteHawke.Com                |  http://www.nitehawke.com/    |
| An Authorized Firefly Dealer |  email  [EMAIL PROTECTED]  |
----------------------------------------------------------------


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.

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



Reply via email to