The technical part is not complicated, I believe the primary issues are in how your trial solution is designed and in how it is factored. As mentioned above, you need to factor such that the function you call is not dependent on the time. If you refactor in this way, you will (1) be able to call it from a link and (2) will also be able to schedule it, or wrap it in a scheduler which may have been defined by project/open or that you might define.
In https://openacs.org/forums/message-view?message_id=3438041 you say:
I dont need any filter by time functionality.
Good point. I agree, you do not need such filtering. But, in
https://openacs.org/forums/message-view?message_id=3437903 you say:
Calling the proc in my link target will not help because the proc has a condition that it will run only on 1st of every month.
So I have one question about that. Why do you have this filtering functionality you know you don't need?
You use bind, but bind is associated with events from the X window system, something you don't use (I am given to understand from your writings that you use ms windows); from the man page for bind:
NAMEbind - Arrange for X events to invoke Tcl scripts
You posted this...
proc time:proc { min hour day month year } {
...
}
is this the proc you wish to run? or, do you want to create a proc that schedules a proc of constant name?
When and under what conditions do you intend to run time:proc? What is it meant to do?
Please make it easy to understand your intent; trying to guess is a useless waste of time. It's evident your full intent is not completely explained since you're asking more questions and changing the requirements in mid-query.
I happen to hold the opinion that we can create something that will work, and to the extent you're willing to cooperate in asking for help, I'm willing to supply some help to you as long as that fits within my schedule. Please don't forget we're volunteering to help (for example, we are NOT paid support for project/open). Your cooperation is requested as we all notice that all of us, yourself, myself and everyone listening to this deserves respect for their time.
I would like to let you know about ad_proc; you can look that up in the api browser.