Lynx???

Kilbey, Aaron akilbey at ci.portland.or.us
Tue Jul 9 16:07:01 CDT 2002


Aloha everybody - 
I'm attempting to issue an http request through lynx to save an XML file to
a local server. 
Here's the code:

----------------------------------------------------------------------------
----------
Newsdump.pl
----------------------------------------------------------------------------
----------
#!/usr/bin/perl

system("lynx -dump http://www.moreover.com/cgi-local/page?feed=239&o=xml >
news.xml"); 
----------------------------------------------------------------------------
----------

1. When I do: "bash$ perl newsdump.pl" I get a zero length news.xml

2. When I do: "bash$ perl newsdump.pl > news.xml" I get a news.xml that is a
numbered list of the news links which is not XML. 

3. When I run http://www.moreover.com/cgi-local/page?feed=239&o=xml in a web
browser, I get the XML document.

I need to have the ability to call this script to automatically retrieve and
save the new file. Please help.


-Aaron Kilbey

TIMTOWTDI



More information about the Pdx-pm-list mailing list