egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

time issue

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Fri Nov 23, 2007 4:34 am    Post subject: time issue Reply with quote

Code:
bind time - "?0 * * * *" proc:name
bind time - "15 * * * *" proc:name


What makes it perform the proc in 10 minutes, when I want it to perform it in every 15 minutes, I don't want to usetimer since I am already using a timer. So I wanted to use time bind. Can you please suggest me.

Thanks
iamdeath
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Nov 23, 2007 2:33 pm    Post subject: Reply with quote

Use four binds for 00, 15, 30, and 45...
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Fri Nov 23, 2007 4:16 pm    Post subject: Reply with quote

Code:
bind time - "00 * * * *" proc:name
bind time - "15 * * * *" proc:name
bind time - "30 * * * *" proc:name
bind time - "45 * * * *" proc:name


Something like that?
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Nov 23, 2007 4:21 pm    Post subject: Reply with quote

Yes...
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Fri Nov 23, 2007 4:32 pm    Post subject: Reply with quote

Thanks it's under testing procedure right now as soon as it's working fine or any errors I'll bug you again Razz

Thanks once again nml you rock you simply rock.

but can you also tell me for my knowledge that how can I use bind time if I have somthing to be performed in 1 hour and 59 minutes. I don't want it to be used exactly after 2 hours but 110 minutes.
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Fri Nov 23, 2007 4:44 pm    Post subject: Reply with quote

bind time is based on system time, not on a delay.
But you can, if you don't want to use a timer, add a bind time in wich you specify the future time on action.
And don't forget to unbind it when the proc is laucnhed.

http://www.tcl.tk/man/tcl8.4/TclCmd/clock.htm could be a friend of yours
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sat Nov 24, 2007 8:39 am    Post subject: Reply with quote

This should be of use for you.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Sat Nov 24, 2007 1:03 pm    Post subject: Reply with quote

Thanks alot cat and sirfz.. it's pretty useful i'll read and try to use those tricks in my scripts.. nml so far your trick worked.. thanks to all of you.

iamdeath
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber