This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Lynx dump to txt file

Old posts that have not been replied to for several years.
Locked
N
NewzUK
Master
Posts: 200
Joined: Mon Nov 18, 2002 3:10 am
Location: Auckland, New Zealand
Contact:

Lynx dump to txt file

Post by NewzUK »

hi

I'm trying to come up with a simple proc that will dump text from a website to a text file on a timer every 5 mins...

I have this for starters...

bind time - "* 5 * * *" getnews
proc getnews {
set all [open lynx -dump -width=3000 "http://www.url.com"]
}

just wondering how I'd specify the txt file for it to dump to?

thanks in advance!
#Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Depending on how big the file is, you may well be able to use the exec command instead.


On top, lynx is a browser, so the output isn't directed to a file normaly, but to the screen.

See the output of "wget --help" on the shell, it should give you what you need to use output files.

On top. When using the "open" method, you have to close the open channel after, otherwise, you end up with a lot of defuct processes, and unhappy admins.
N
NewzUK
Master
Posts: 200
Joined: Mon Nov 18, 2002 3:10 am
Location: Auckland, New Zealand
Contact:

Post by NewzUK »

hi - thanks for that

to get the wget --help info, do I have to be in a particular directory because I can't seem to retrive it...sorry if it's an obvious question...
#Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org
Locked