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
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...
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 ...
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...
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?
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 ...
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...
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...
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...
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...
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...