@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> hey
<1> set x [exec make config]
<1> why does that not work?
<1> i know i'm in the correct directory
<2> why are you trying to do that?
<2> or try bgexec.
<2> google for it, its bedtime ;]
<3> ;expr 4 / 2
<4> anc-: #266 (17834 clicks) Tcl: 2
<3> ;set oldList {the fox jumps over the dog}
<3> ;set midList [linsert $oldList 1 quick]
<4> anc-: #267 (217 clicks) Tcl: the fox jumps over the dog
<4> anc-: #268 (5395 clicks) Tcl: the quick fox jumps over the dog
<3> ;set list(a) "primary"; set list(b) "secondary"; foreach x {a b} { lappend toghether $list($x) }; puts $toghether
<4> anc-: #269 (stdout) primary secondary
<3> ;set list ". . . ."



<4> anc-: #270 (345 clicks) Tcl error: can't set "list": variable is array
<3> how do i convert that into ". . vs .."
<5> i dont get what you mean
<3> how do you insert a word in the middle of a list
<5> you read the tcl docs
<3> omg
<5> what do you want me to say
<5> you answered your question one hour ago yourself already
<3> eh
<5> ;unset list; set list [list 1 2 3 4 5]
<4> Gotisch: #279 (306 clicks) Tcl: 1 2 3 4 5
<5> ;set list [linsert $list 2 "inserted Value"]
<4> Gotisch: #282 (211 clicks) Tcl: 1 2 {inserted Value} 3 4 5
<3> heh yea i know that.. but my list is made of equal numbers now
<5> so?
<3> uhm wait a sec
<3> might have missed something
<6> [expr {[llength $list] + 1}]
<4> [GRiMMY]: #289 (203 clicks) Tcl: 7
<6> that'll stick it in the middle
<5> more like in the end
<6> [expr round({[llength $list] + 1})]
<4> [GRiMMY]: #292 (413 clicks) Tcl error: argument to math function didn't have numeric value
<5> ;set list [linsert $list [expr {int([llength $list]/2)}] "middle"]
<4> Gotisch: #293 (347 clicks) Tcl: 1 2 {inserted Value} middle 3 4 5
<5> ;set list [linsert $list [expr {int([llength $list]/2)}] "middle nearly :)"]
<4> Gotisch: #294 (314 clicks) Tcl: 1 2 {inserted Value} {middle nearly :)} middle 3 4 5
<3> exacly
<3> thanks
<5> ;set list [linsert $list [expr {int([llength $list]/2)}] "you cant really get a middle when the number is uneven"]
<4> Gotisch: #297 (315 clicks) Tcl: 1 2 {inserted Value} {middle nearly :)} {you cant really get a middle when the number is uneven} middle 3 4 5
<7> anyone up?
<8> wazzzzzzzzzzzzzzzzzzzzzzzzzzaaaaaaaaaaaaaaaaaaaaaa
<9> lol
<10> w***sssssaaaaaaaaaaaaaaaaabii
<8> guess we kinda WORK on scaring people away
<8> !seen lep*
<11> I don't know who lep* is.
<12> I don't know who lep* is.
<4> I don't know who lep* is.
<7> ok..
<7> i'm running a tcl script
<7> which is exec'ing a csh script
<7> but it's throwing an exception every time
<7> even though the csh script is returning a 0 for status
<7> any idea why??
<7> is there somethin---------------------------------------
<7> Timothy R. Jarvis
<7> ---------------------------------------
<7> Graduate Research ***istant
<7> International Neuroimaging Consortium
<7> VA Medical Center
<7> 612-467-2619
<7> http://www.neurovia.umn.edu
<7> ---------------------------------------
<7> err oops
<6> lol
<7> is it looking for a certain non-zero return code?
<7> or does it just not like csh? :'(
<6> hmmm
<3> ;set reverse ". . . this"



<3> is it possible to lsearch from behind ? so it will return 0 in this case
<4> anc-: #361 (197 clicks) Tcl: . . . this
<3> ;lsearch -start $reverse this
<4> anc-: #363 (300 clicks) Tcl error: missing starting index
<3> ;I
<8> i suppose its running normal when u aint running it from an csh script ?
<6> ;lsearch [lreverse $reverse] this
<7> the tcl script is calling the csh
<4> [GRiMMY]: #366 (10155 clicks) Tcl: 0
<7> the csh runs fine on its own
<7> the tcl runs fine on its own
<7> but the tcl calling the csh, throws an exception
<3> ;lsearch -sorted -decreasing $reverse this
<4> anc-: #372 (185 clicks) Tcl: -1
<3> ;lsearch $reverse this
<4> anc-: #373 (168 clicks) Tcl: 3
<3> ;lsearch -sorted decreasing $reverse this
<6> anc- w***up with what i did?
<4> anc-: #374 (303 clicks) Tcl error: bad option "decreasing": must be -all, -ascii, -decreasing, -dictionary, -exact, -glob, -increasing, -inline, -integer, -not, -real, -regexp, -sorted, or -start
<6> ;lsearch [lreverse $reverse] this
<10> p0-hates: If your csh script writes to stderr at any point, it'll cause a tcl error.. so you'll wanna catch it I guess.
<4> [GRiMMY]: #376 (1421 clicks) Tcl: 0
<3> oh sry didnt see it
<6> haha lol
<3> thanks
<3> :)
<9> how to output word backward?
<9> lite hello -> olleh
<9> like*
<6> ;set word "hello"
<4> [GRiMMY]: #385 (149 clicks) Tcl: hello
<6> ;puts [join [lreverse [split $word]]]
<4> [GRiMMY]: #386 (stdout) hello
<6> hmmm
<6> ;puts [join [lreverse [split $word ""]]]
<4> [GRiMMY]: #388 (stdout) o l l e h
<6> ;puts [join [lreverse [split $word ""]] " "]
<4> [GRiMMY]: #389 (stdout) o l l e h
<7> FireEgl
<9> ok thx =)
<7> does an echo cmd write to std error?
<6> ;puts [join [lreverse [split $word ""]] " "]
<4> [GRiMMY]: #393 (stdout) o l l e h
<10> no
<7> how can i see waht the exception is? (i'm not very experience din tcl)
<6> hmmm why doesnt it join?
<6> ;puts [join [lreverse [split $word ""]] .]
<4> [GRiMMY]: #397 (stdout) o.l.l.e.h
<6> ;puts [join [lreverse [split $word ""]]]
<4> [GRiMMY]: #398 (stdout) o l l e h
<6> ;puts [join [lreverse [split $word ""]] ""]
<4> [GRiMMY]: #399 (stdout) olleh
<6> ooops :P
<13> join the fight
<4> th3dge: #401 (149 clicks) Tcl: the
<10> p0-hates: You could uhm, run the csh script from the shell with stdout redirected to /dev/null, so that when it runs only stderr will show on your screen. Do like: ./yourscript > /dev/null
<10> ACTUALLY..
<10> Do like this in your tcl script.. [exec ./yourscript 2> /dev/null] That way it won't see the stderr outputs and hence won't get a tcl error.
<3> ;set a "1"; set b [lindex $a 1]; if {![info exists b]} { puts "nothing"} else { puts "exist" }
<4> anc-: #406 (stdout) exist
<2> op plz?
<2> hey FireEgl, hows the shell working for you?
<10> smokey: It's ****ing right now.. ssh.juggalo.be doesn't point to the right IP.
<2> yeah
<2> ip changed
<2> 68.110.214.22
<2> use that till i do a mupdate
<10> And I set all my leaf bots to connect to that hostname..
<10> gah.. I don't wanna manually change it in all my bots everytime your IP changes..
<2> one second.
<2> im updating
<2> its supposed to be static!
<10> uh huh
<2> its updating now


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #tcl
or
Go to some related logs:

#beginner
#stocks
#computers
#linux-noob
North Star Foundations concrete
#windowsxp
Nick: BiggBoss
#beginner
#cph
#nhl



Home  |  disclaimer  |  contact  |  submit quotes