egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Weirdness, Lines of code being skipped randomly ???

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
madpinger
Voice


Joined: 03 Oct 2010
Posts: 12

PostPosted: Sun Oct 03, 2010 3:16 pm    Post subject: Weirdness, Lines of code being skipped randomly ??? Reply with quote

Ok, the details of the setup.
I'm using the following packages:
base64, tdom, http, sqlite3, mysqltcl

Tcllib 1.2, tcl 8.5.9 and 8.5.8

Eggdrop 1.6.8+sockfix svn snapshot and Eggdrop 1.6.20.

These are two distinct builds running the same script on two sep. servers and having the same weirdness.

In several places, I have statements where only PART of the code
In the following example:
Code:

    set auth "Basic [base64::encode [CoreDB_iceCastUserName]:[CoreDB_iceCastPassWord]]"
    set headerl [list Authorization $auth]
    if { [catch { set tok [http::geturl "http://[CoreDB_iceCastHost]:[CoreDB_iceCastPort]/admin/stats" -headers $headerl] } errmsg] } {
   putlog "icecastproc: Fetching of icecast XML failled with error: $errmsg : Delaying run.";
   dputs "icecastproc: Finnished With Errors";
   utimer 30 icecastproc
   return 1
    }

Some times, it ONLY executes the "putlog" statement and then continues execution of code past the closing curly bracket when it should return. it does not even execute the dputs function or utimer. Yet, I have removed everything but the return, it refuses to execute anything other than the putlog statement when errors like "Connection refused" occur, etc. Other times, it acts as expected, records the error to log and resets the timer.

I have sim issues in a few places and am at a utter loss as to why.
Anyone have an Ideal whats going on ?
Back to top
View user's profile Send private message
Pixelz
Voice


Joined: 15 Jun 2005
Posts: 24
Location: EFnet

PostPosted: Thu Oct 07, 2010 1:50 am    Post subject: Re: Weirdness, Lines of code being skipped randomly ??? Reply with quote

Quote:
Some times, it ONLY executes the "putlog" statement

Quote:
it does not even execute the dputs function or utimer.


That's just not possible. You sound very confused.
_________________
Pixelz @ EFnet, freenode, QuakeNet, Undernet
Back to top
View user's profile Send private message
madpinger
Voice


Joined: 03 Oct 2010
Posts: 12

PostPosted: Fri Oct 08, 2010 3:56 pm    Post subject: Re: Weirdness, Lines of code being skipped randomly ??? Reply with quote

Pixelz wrote:
Quote:
Some times, it ONLY executes the "putlog" statement

Quote:
it does not even execute the dputs function or utimer.


That's just not possible. You sound very confused.


No, I'm not confused. It's weirdness.
Sometimes, it only executes the very first line, others it does not. Regardless it skips the return and continues execution of code past the bracket. Rather bothersome really.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber