I see something wrong with it... But that still doesn't answer one of my questions... I should always check to make sure that a command executes properly such as accessing a web page, accessing a file. How do you go about doing that so that the rest of the procedure still executes and you do not rec...
I wrote an eggy script for our shoutcast radio channel. Part of what this script does is check the status web page every time someone joins the channel to determine if someone is streaming or not.(Bloody dj's don't know how to follow instructions). There are times when the bot can't reach the host(s...
I have a line of code that I borrowed from another script to read the 7.html page from shoutcast. puts -nonewline $lcl_StreamWebPageScoket "GET /7.html HTTP/1.1\nAccept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-sh ockwave-flash, */*\nAccept-Language: en-us\nAccept-Enco...
Is there a way to count the number of characters in a string minus the hex codes for colors? "\0034,1\xb0\xbaO\xa7\0030 ~ ~ ~ ~ ~ $botnick command help ~ ~ ~ ~ ~ " If I do a string length on that, that returns the total count of characters including the hex values and such. Is there any wa...
When looking through these threads, I seen where a suggestion was made to use string map instead of regsub, which seemed to fit a situation that I am trying to code for. But, for some reason I am having problems with this. I am trying to use a variable for the replacement value, and the variable nam...
Im putting together a script for a IRC radio channel, and I was doing a check on the status of a nick to see if they were an oper in any of the radio channels that this nick would be valid for. This command was issued with a msg, which required the logic of the script to loop through a list of chann...
The module I want to create will be called at most, twice an hour. It's to create a banner for a web page containing the persons name that is streaming on an irc radio station. When they execute in channel a bot command to set topic that they are the current dj is the only time this would be called....
I havent written the perl program yet, so I havent tested. But, would it be something like this? exec perl CreateImage.pl $varible There is no need to receive back from this perl program the status. Like I said, its creating an image file for a web site based on things going on. yes/no/maybe? droolin
Is it possible to execute an external process from inside an tcl script. Ie, I want to call a perl script that creates an image file based on information known by the eggie.
Im going to be using perl, cause I want to use the GD perl module for creating this image.
Is it possible????
Ok, after you said about the 'switch'. I looked it up in a tcl e-book that I have. That's exactly what I was looking for. I have a bunch of different simple if statements I think would be better coded using the switch. Thank you. I've only ever seen the case statement in various languages, and wasnt...
Is there anything special that would needed to be done to read regular expresions from a .txt file into an array? I have a security bot that basicatly I keep adding regular expresions for specific checks(nicks/idents/version), and I would like to organize it so that it just loops an array of regular...