@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> by spawn, I'm refering to exp_spawn to launch an external process
<0> specifically, I am attempting to script with plink (a part of the putty package)
<0> should I show my code here?
<1> i have no idea what you are talking about
<1> i shtat a tcl question?
<0> alright, lets eliminate plink from the equation. I am attempting to launch an external application (cmd.exe ?) with TCL and Expect
<0> in this case, I am using exp_spawn cmd.exe /c 1.cmd, where 1.cmd is a batch script with a variable to "echo login"
<2> you should eliminate plink ...and expect, then ask your *tcl* question here
<1> why don't you lanch it via tcl?
<0> that's what I am asking
<0> thanks though



<1> hu?
<1> exec
<1> just exec it
<1> ; exec
<1> bot gone again?
<3> hi
<3> i have a quetsion could someone help me out ?
<4> you have to ask it first
<4> well then no, if you're not gonna ask, noone can help you out
<1> hehe
<5> Abend http://paste.tclhelp.net/?id=552 <<<
<5> [21:09] Tcl error [log]: wrong # args: no script following "{![file exists "links.log"]}" argument
<5> wer kann da helfen
<6> http://paste.tclhelp.net/
<6> ooops
<6> http://paste.tclhelp.net/?id=552
<6> i updated ut
<6> *it
<5> thx
<7> I open a file and read (r) the text into a textwidget and close it, then i open the same file (w+) and puts the contents into the file and close it. it all works fine, exept when i run the program a second time, the content of the file has changed back. any idea what im doing wrong?
<7> lol, solved it
<8> why do i always read that nick as dream-***
<8> :I
<9> because you're a lonely, horny bastard ?
<10> lol
<8> perhaps
<11> hello im in need of a script , if someone can help me creat it that will be great :) pls try to help , http://paste.anbcs.com/4182
<4> is this #willCodeTCLforFree?
<8> yet another warez script :)
<6> lol
<7> when i use the toplevel command, why does it pop up two windows?
<8> ?? regexp
<12> [What-is] That term has not been defined.
<13> regexp -> http://Tcl.Tk/man/tcl8.5/TclCmd/regexp.htm
<8> ;set check "test1 test2"
<13> anc: #92 (337 clicks) Tcl: test1 test2
<8> ;regexp $check test
<13> anc: #93 (867 clicks) Tcl: 0
<8> ;regexp $check adsd
<13> anc: #94 (501 clicks) Tcl: 0
<8> ;regexp $check test1
<13> anc: #95 (523 clicks) Tcl: 0
<8> ;regexp test1 $check
<13> anc: #96 (8048 clicks) Tcl: 1
<8> ;regexp test $check
<13> anc: #97 (758 clicks) Tcl: 1



<8> ;regexp -inline test $check
<13> anc: #98 (402 clicks) Tcl: test
<8> ;regexp -exact test $check
<13> anc: #99 (843 clicks) Tcl error: bad switch "-exact": must be -all, -about, -indices, -inline, -expanded, -line, -linestop, -lineanchor, -nocase, -start, or --
<8> is it possible to make it search for only exact values
<8> ;regexp {test} $check
<13> anc: #101 (317 clicks) Tcl: 1
<8> ;regexp -all test $check
<13> anc: #102 (417 clicks) Tcl: 2
<8> ;lsearch test $check
<13> anc: #103 (324 clicks) Tcl: -1
<8> ;lsearch test1 $check
<13> anc: #104 (326 clicks) Tcl: -1
<8> ;lsearch $check test1
<13> anc: #105 (329 clicks) Tcl: 0
<8> ;lsearch $check test
<13> anc: #106 (314 clicks) Tcl: -1
<14> hi, is there any script which replies with (for example an url) on a specific trigger .. say .. !stats .. ?
<8> FEL yes
<14> whats it called / where can i get it?
<8> you can make it you self
<8> its 2 lines
<15> more
<15> :p
<14> can someone help out then? atleast a link to a howto .. i only seem to find books on tcl :P
<16> you're also in a tcl chan only ;)
<17> hehe
<17> FEL is wrong
<8> bind; proc {} { puts "hello }
<8> two lines
<8> :>
<17> bind pub -* !outputthe****inurl proc:out
<17> and i bind to =)
<8> hehe
<8> ?? string
<12> [What-is] That term has not been defined.
<13> string -> http://Tcl.Tk/man/tcl8.5/TclCmd/string.htm
<18> any regex fans in the audience?
<9> <-
<18> does ^ have any kind of special crazy meaning in tcl?
<18> that would break a regex?
<18> because this works:
<18> set id [open "| grep -e \"poop\" $file"]
<18> and this doesnt:
<18> set id [open "| grep -e \"^poop\" $file"]
<18> adding ^ always returns zero matches, no matter what else i do
<18> it works on command line too, just not thru the pipe in tcl
<9> hehe
<9> ^ is for "beginning of string"
<9> so "^poop" should match for "poopoolus" but not for "apoop"
<18> yea thats what i want
<18> but if i p*** ^ thru a command pipe, i get zero matches
<9> well ^ is special in a RE, not in tcl
<18> yea ok thats what i thought


Name:

Comments:

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






Return to #tcl
or
Go to some related logs:

#beginner
Soodoog
#politics
#sex
#solaris
#politics
queentrin
#computers
chaging pass to radmin
how to restack tcp/ip



Home  |  disclaimer  |  contact  |  submit quotes