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 

[not solved, but a workaround] Wildcards (*) no longer work!

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


Joined: 15 Nov 2008
Posts: 134

PostPosted: Tue Jan 22, 2013 8:49 pm    Post subject: [not solved, but a workaround] Wildcards (*) no longer work! Reply with quote

hi all, I admit.. I'm very tired and very flustered right now..

but I have discovered that a part of my script- which USED to work FLAWLESSLY.. however, now doesn't seem to work anymore.

I have tracked the problem down to a wildcard character * which has now become part of the string and not a wildcard at all.

further checking/testing revealed that ALL the other *'s throughout the code , as well, are no-longer seen as wildcards either!

so, whats SCREWY thing has gone wrong THIS time?

I have tried the installing the latest ver of TCL and its modules plus, I even recompiled the bot from scratch with no luck...

still doesn't work!

so, what have I done wrong/what has gone a-muck?

note:

I have since upgraded from FBSD 7.4 x 32 bit to FBSD 9.0 x 64 bit when I noticed this #%#@$ has broken!

for example, the following:

Code:

putlog "[catch {foreach T [glob warp_show-*.mp3] {;}}]"


will only return a result IF the filename actually is "warp_show-*.mp3"

its supposed to return a result of any file(s) which contain the string with a wildcard; example: warp_show-6-9-2013.mp3

also the script snippet:

Code:

if {(![catch {foreach VarA [glob "warp_show*.mp3"] {catch {exec rm -rf $VarA};};}])} {
    putquick "NOTICE $nick :Archives deleted!";
} else {
    putquick "NOTICE $nick :No archives to delete were found.";
};


will only delete the file named: warp_show*.mp3

these are just 2 examples.. theres even some code that the awesome NML375 did for me that now doesn't work either.

-DjZ-
Sad Sad


UPDATE:
I removed this post from its original place and moved it to this forum, sorry about putting it in the wrong place by mistake... OOPS!


Last edited by dj-zath on Thu Jan 31, 2013 7:47 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
dj-zath
Op


Joined: 15 Nov 2008
Posts: 134

PostPosted: Thu Jan 31, 2013 7:46 am    Post subject: Reply with quote

this function was depreciated; it couldn't have worked (but, I tell you, before, it DID!).

I did have a 'solution'.. but, then the server was quickly taken out by hackers.. and I lost all the work before I could back it up..

I have to start over from scratch..

if I can remember EXACTLY what I had to do, and then, apply to the new work, to "get around the issue" I'll let you know.
Back to top
View user's profile Send private message Visit poster's website
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Thu Jan 31, 2013 7:55 am    Post subject: Reply with quote

what was the issue again? the * is not treated as wildcard in glob?
_________________
Once the game is over, the king and the pawn go back in the same box.
Back to top
View user's profile Send private message
dj-zath
Op


Joined: 15 Nov 2008
Posts: 134

PostPosted: Fri Feb 08, 2013 1:21 pm    Post subject: Reply with quote

yep, that's pretty much it...
Back to top
View user's profile Send private message Visit poster's website
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