@# Quotes DB     useful, funny, interesting





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



Comments:

<0> its great fun :)
<0> like thousands of users
<1> i choosed not to play poker :)
<1> i like games i always win in
<1> that's why i script, i always win ;)
<0> hahah
<2> lol
<3> how do i make my bot trigger on something besides irc commands
<1> other binds ;)
<3> like if i need to send some cind of message from a linux shell to my bot and then it will execute a proc
<3> other binds ?
<3> ? binds



<4> binds isnt Tcl, but Tk
<1> oh
<1> its eggtcl dood
<4> you would need to open a channel, i suppose, and listen on the channel for specific info
<1> u dont use tk on eggdrops
<1> ;)
<1> but hest is right
<4> hest is always right ;>
<4> hest is best
<3> open ??
<5> open -> http://Tcl.Tk/man/tcl8.5/TclCmd/open.htm
<4> open ????????????????????????????????
<5> open -> http://Tcl.Tk/man/tcl8.5/TclCmd/open.htm
<3> open a channel ?
<3> where should i look for examples
<4> either by open or by using a scoket
<4> socket
<4> what, exactly, do you need
<4> you want to send info through the shell?
<3> yes
<4> and have a tcl act depending on the info?
<3> to my eggdrop
<3> yes
<4> well, im not very familiar with the linux shell, but i suppose you could open a pipe
<4> (open |filename.txt r)
<4> and use fconfigure to check it
<4> never done that
<4> but i suppose that's the theory to it
<4> !wiki pipe
<3> the case is: every morning at 06:00 some gameservers will be rebooted and i want to set my bot to generate new p***words for the gameservers at 06:10
<3> but it would be better if it could be done just after the shell rebooted the servers
<3> a script is doing that atm.
<4> use crontab, then
<4> or do a bind time
<3> well its not a problem the time thing
<3> i just need to know how to send that info from the shell to the bot
<4> what info?
<3> that the servers is ready for new p***words
<3> servers done rebooting
<3> anything
<4> well, this is getting too linux specific for me, so i dont think i can help you with that
<3> well everything is already done, i just need to find a way how to make linux execute a proc in my tcl script
<4> a pipe, i suppose
<4> i gotta run
<4> there are others here that'll be able to help you more than i can
<4> good luck
<3> tnx ^^
<6> ;set i [unixtime]; putquick $chan $i
<6> set i [unixtime]; putquick $chan $i
<5> Level: #2023 (401 clicks) Tcl error: can't read "chan": variable is array
<7> ;set p puts
<5> badaas: #2025 (145 clicks) Tcl: puts
<7> ;$p nonsensical!
<5> badaas: #2026 (stdout) nonsensical!
<8> ;duration [unixtime]



<5> N86ers: #2027 (2204 clicks) Tcl: 36 years, 14 weeks, 3 days, 17 hours, 30 minutes, 6 seconds
<7> thats some uptime
<8> =)
<6> that is some uptime
<7> ;set u unixtime
<5> badaas: #2031 (151 clicks) Tcl: unixtime
<7> ;[$u]
<7> .[$u]
<7> .reset
<7> ;reset
<7> bugger
<5> badaas: #2034 (2376362 clicks) Tcl: Reset safetcl.
<8> ;expr 50*3.14
<5> N86ers: #2 (20643 clicks) Tcl: 157.0
<3> how do i delete a file ?
<3> or actually just empty it for data
<3> delete and create
<2> w
<2> open file w
<3> thats just write ?
<3> how do you delete it first
<2> wwwwwwwwwwwwwwwwwwwwwwww
<3> k
<2> Open the file for writing only. Truncate it if it exists. If it doesn't exist, create a new file.
<2> Truncate: clear data
<2> add a + if you want to read also
<3> oki
<7> ;set u unixtime
<5> badaas: #22 (160 clicks) Tcl: unixtime
<7> ;set . puts
<5> badaas: #23 (135 clicks) Tcl: puts
<7> ;$. [$u]
<5> badaas: #24 (2254 clicks) Tcl error: invalid command name "$."
<7> ;set 1 puts
<5> badaas: #25 (136 clicks) Tcl: puts
<7> ;$1 [$u]
<5> badaas: #26 (stdout) 1140979578
<2> you bored?
<9> lol
<9> ;set u [unixtime]; puts $u
<5> smokey: #29 (stdout) 1140984881
<9> ;]
<9> ;lduration $u
<5> smokey: #30 (2262 clicks) Tcl error: invalid command name "lduration"
<9> ;duration $u
<5> smokey: #31 (2123 clicks) Tcl: 36 years, 14 weeks, 3 days, 20 hours, 14 minutes, 41 seconds
<3> bind time - "03 * * * *" clear:stats
<3> proc clear:stats {min hour week month year} {
<3> putquick "PRIVMSG #anc.dk :Stats cleared" }
<3> why does it only perform that one time
<3> and never again ?
<3> shouldnt it be doing it over and over again
<10> you could to like
<10> a loop proc
<3> i just want it to do it everytime the time is 03
<7> ;set u [unixtime] ;# isnt dynamic,
<5> badaas: #40 (168 clicks) Tcl: 1140985838
<7> u just set it to the value
<7> ;set u unixtime ; duration [$u]
<5> badaas: #42 (883 clicks) Tcl: 36 years, 14 weeks, 3 days, 20 hours, 31 minutes, 15 seconds
<7> ;duration [$u]
<5> badaas: #43 (907 clicks) Tcl: 36 years, 14 weeks, 3 days, 20 hours, 31 minutes, 27 seconds
<3> yea but then i would have to make a trigger to check what the unixtime is
<3> shouldnt that time bind i made not work ?
<3> dont understand why it just stops working after performed 1 time


Name:

Comments:

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






Return to #eggtcl
or
Go to some related logs:

#beginner
#sql
#winxp
#windowsxp
additional winxp serial numbers
#windows
#computers
#worldcup
#worldcup
#beginner



Home  |  disclaimer  |  contact  |  submit quotes