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.

dump script

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:

dump script

Post by NewzUK »

Hi

I'm starting off making a script to read text from a txt file, and I've got this piece of script to start with to dump from a website every 5 mins to 'cbs.txt' and leave it there until the the next dump - but it's not creating the text file...

set lynx "/usr/bin/lynx"

bind time - "05 * * * *" get:news
proc get:news { min hour day month year } {
[open "|$lynx -preparsed -dump -width=3000 cbs.marketwatch.com/news/newsfinder" r] > cbs.txt
}

putlog "GetNews loaded"

I've also tried 'exec' for lynx but still no luck - just wondering if anyone can see any problems as im not getting any error msgs back...

thanks in advance.
#Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org
N
NewzUK
Master
Posts: 200
Joined: Mon Nov 18, 2002 3:10 am
Location: Auckland, New Zealand
Contact:

Post by NewzUK »

it's ok - I got it going =)
#Newsroom - Where News & Markets Connect
http://www.inewsroom.net
#Newsroom on irc.othernet.org
Locked