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.

Weird TCL problem!

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:

Weird TCL problem!

Post by NewzUK »

Hi - I've been using a news script (reuters.tcl) for a while now with no problems, until today when it stopped working, and I got this error message:

Tcl error in script for 'timer9' :
invalid command name "putnot"

(the '9' in 'timer9' has also displayed as other various numbers in the error message)

I havn't changed anything in the script that I know of - and have even tried downloading the original script and getting the error on that too!

I'd appreciate any help on this one - the original script is at:

http://www.ruptbot.com/download.php?sid=10

thanks!

Damon. :-?
('MarketInsider' in #News on Othernet)
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

hmm I think it should be "putnotc" not "putnot"
Elen sila lúmenn' omentielvo
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

This is will either be caused by one of 2 things.

From what I remember, alltools.tcl provides this command. Try making sure it's loaded in the config file.

Tcl uses command completion, so that the full command name isn't needed.

IE, using "pu stdout hello" would operate perfectly valid, the same as "puts stdout hello".

However, as soon as I create command called "putf", Tcl will show a error for the first example.

The quickest method of fixing it, is to make sure alltools is loaded, then search the reuters.tcl for the string "putnot " (notice the space), and change it to putnotc.
N
NewzUK
Master
Posts: 200
Joined: Mon Nov 18, 2002 3:10 am
Location: Auckland, New Zealand
Contact:

Post by NewzUK »

hi again

Thanks for your replies - have added the 'c' to the 'putnot', and the error message is gone, but I'm now now getting a '1' every few minutes in the telnet window of the bot, and no news sent to the channel.

Also checked alltools.tcl is loaded and it is.

*sigh*
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

From what I can see, it is not this script causing this.

Have you added anything new in the past few days or weeks?

Have you tried using .die and restarting the bot, or using plain old .restart?
N
NewzUK
Master
Posts: 200
Joined: Mon Nov 18, 2002 3:10 am
Location: Auckland, New Zealand
Contact:

Post by NewzUK »

hi again guys

thanks for your ideas on this problem, it solved part of the problem, but as a last resort, I went to the Reuters webpage that the script gets the headlines from, and it no longer exists! It seems they have totally redesigned their site (thanks for telling me Reuters! haha).

Since they don't appear to have a similar page anymore, I've written to the author to ask him if he might alter the script to point to:
http://cbs.marketwatch.com/news/newsfin ... iteid=mktw

as this is a source for breaking news I'd like to use in my channel.

So far he hasn't replied - if anyone out there knows how I might alter this script:

http://www.ruptbot.com/download.php?sid=10

to be used on the CBS Marketwatch page, I'd be most grateful!

Thanks again guys!
Damon.
Locked