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.

Search found 15 matches

by Taiyaki
Sat Feb 08, 2003 10:42 pm
Forum: Archive
Topic: need help: how to do arithmatic operations on strings
Replies: 3
Views: 974

n/m I realized what you tried to say when I reviewed the TCL manual pages, lol.

Thanks a lot for your help egghead!!! :D
by Taiyaki
Sat Feb 08, 2003 4:39 pm
Forum: Archive
Topic: need help: how to do arithmatic operations on strings
Replies: 3
Views: 974

Re: need help: how to do arithmatic operations on strings

egghead wrote:Maybe it is better to add 24*60*60 ticks to the [clock seconds] and then do the [clock format]?
sorry but I'm a newbie :-? I think what you're trying to say is add 24 hours to my clock before doing the format? That sounds like a great idea, but can you give me the code to do that :lol:

Thanks
by Taiyaki
Sat Feb 08, 2003 4:22 pm
Forum: Archive
Topic: need help: how to do arithmatic operations on strings
Replies: 3
Views: 974

need help: how to do arithmatic operations on strings

in my script i use the clock function to get me the current date, but I want to add 1 to the date (say it's the 8th today, and I want tomorrow's date, so I add 1 to 8 to make it 9) set cdate1 [clock format [clock seconds] -format "%m %d %y"] append esttime [lindex $cdate1 0] append esttime...
by Taiyaki
Wed Nov 20, 2002 2:08 pm
Forum: Archive
Topic: Does HTTP::geturl "cache" a file?
Replies: 6
Views: 2376

heh, that's true. thanks so much for your help! :D
by Taiyaki
Tue Nov 19, 2002 11:32 pm
Forum: Archive
Topic: Does HTTP::geturl "cache" a file?
Replies: 6
Views: 2376

hmm...well i'm using another method, which just uses the basic HTTP package stuff...(ie. geturl, data, etc.) it works fine, but there's just a delay when the remote file is updated to when the bot finally picks that up...as you said there's no cache, so i guess it's not a problem then. oh yeah, one ...
by Taiyaki
Tue Nov 19, 2002 12:25 pm
Forum: Archive
Topic: Does HTTP::geturl "cache" a file?
Replies: 6
Views: 2376

wow thanks for the hasty reply! :D so now my script hasn't really changed...it is using this to grab a remote file set tok [::http::geturl "http://www.baka-updates.com/updater/newrls.txt"] set data [::http::data $tok] this file is always changing and i would like the trigger to display the...
by Taiyaki
Tue Nov 19, 2002 12:01 pm
Forum: Archive
Topic: Does HTTP::geturl "cache" a file?
Replies: 6
Views: 2376

Does HTTP::geturl "cache" a file?

I'm wondering if the file grabbed by HTTP::geturl is cached because it doesn't refresh...is there anyway i can make sure the script displays the up-to-date results?

Thanks :D
by Taiyaki
Tue Nov 19, 2002 11:59 am
Forum: Archive
Topic: how to parse text from ::HTTP::data
Replies: 3
Views: 1689

ah, i got it to work! thanks :D
by Taiyaki
Tue Nov 19, 2002 1:51 am
Forum: Archive
Topic: how to parse text from ::HTTP::data
Replies: 3
Views: 1689

ok, never mind, that, lol. i've gotten that solved. but now i'm at another question: i have an output of this 11/18/02|Cooking Master Boy|17|Anime-Keep| and after i do [split $list |] i get this 11/18/02 {Cooking Master Boy} 17 Anime-Keep {} how do i make it display just 11/18/02 Cooking Master Boy ...
by Taiyaki
Mon Nov 18, 2002 10:19 pm
Forum: Archive
Topic: how to parse text from ::HTTP::data
Replies: 3
Views: 1689

how to parse text from ::HTTP::data

ok, i'm using this code to grab text from a remote text file package require http set cmd "!updates" bind pub -|- $cmd test proc test {nick uhost hand chan text} { putquick "NOTICE $nick :let's hope this is faster" set tok [::http::geturl "http://www3.telus.net/dekan/newrlsd...
by Taiyaki
Mon Nov 18, 2002 9:36 pm
Forum: Archive
Topic: Why is it slow when i use HTTP::geturl ?
Replies: 11
Views: 3497

hmm...i'm trying with that code but it doesn't seem to work... i edited a little bit of it package require http #set url of the update file set url "http://www3.telus.net/dekan/newrlsd.txt" #set current date set cdate [clock format [clock seconds] -format "%m/%d/%y"] set cmd &quo...
by Taiyaki
Mon Nov 18, 2002 9:02 pm
Forum: Archive
Topic: Why is it slow when i use HTTP::geturl ?
Replies: 11
Views: 3497

thanks for the fast reply :D

and so the *.txt file will be copied to my HD every 10 mins and the output will be read from that file right?
by Taiyaki
Mon Nov 18, 2002 8:16 pm
Forum: Archive
Topic: Why is it slow when i use HTTP::geturl ?
Replies: 11
Views: 3497

hmm...well if this method i'm using is going to be ineffective (since the text file being shown in the script is only a sample...the actual file is pretty big) is there another way i can achieve this effect? like how can i grab info from a remote website (doesn't have to be a txt file cuz i can pars...
by Taiyaki
Mon Nov 18, 2002 2:36 pm
Forum: Archive
Topic: Why is it slow when i use HTTP::geturl ?
Replies: 11
Views: 3497

hmm actually there isn't much under <snip>, lol. this is like my first TCL script :lol: let's see here, this is the whole thing package require http set cmd "!updates" bind pub -|- $cmd updates proc updates {nick handle host chan text } { set cdate [clock format [clock seconds] -format &qu...
by Taiyaki
Mon Nov 18, 2002 4:46 am
Forum: Archive
Topic: Why is it slow when i use HTTP::geturl ?
Replies: 11
Views: 3497

Why is it slow when i use HTTP::geturl ?

i think i'd better explain my problem :D i use the HTTP::geturl to grab lines from a remote text file, and then display it in a NOTICE set mydata "$nick" set token [::http::geturl "http://www3.telus.net/dekan/newrlsd.txt" -command [list mycallback "$mydata"]] <snip> pro...