How to Schedule a TCL Procedure

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf How to Schedule a TCL Procedure

  • Creator
    Topic
  • #55480
    Layale Zakhour
    Participant

      Hello,

      I have a TCL procedure that calls a Python Script. How do I schedule the script to run every 5 mns in Cloverleaf? How is it done in Cloverleaf?

    Viewing 4 reply threads
    • Author
      Replies
      • #85475
        Charlie Bursell
        Participant

          Unfortunately, the Cloverleaf timer it set up more to handle absolute times than periodic times.  In Cron it would be easy to do something like:

                                          */5 * * * *  myscript

          In Cloverleaf using the timer mode of fileset, etc. you must do something like:

                             0 0,5,10,15,20,25,30,35,40,45,50,55 * * * *

          This says to run at 0 seconds of every 5 minutes of every hour, etc.  It is important to set seconds to 0.  Leaving it at * would make it try to run every second.

          Maybe someone could submit an enhancement request to implement periodic timing similar to the Cron paradigm.   😀

        • #85476
          Layale Zakhour
          Participant

            Charlie Bursell wrote:

            Unfortunately, the Cloverleaf timer it set up more to handle absolute times than periodic times.

          • #85477
            Robert Kersemakers
            Participant

              BTW I have used the ‘cron-style’ way of setting up advanced scheduling. The attached example shows how to look for a file every 5 minutes from 16:00 till 16:55.

              PS I forgot to put the 0 for seconds. Not sure if the procedure then runs 60 times that specific second.

              Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

            • #85478
              Charlie Bursell
              Participant

                Interesting.  I did not know the “/” paridigm worked in Cloverleaf.  I tried with just /5 and did not work.   Maybe it needs the 0 in front?

              • #85479
                Robert Kersemakers
                Participant

                  Try restarting the whole process. I noticed that only restarting the thread didn’t work: had to restart the process for it to work.

                  Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands

              Viewing 4 reply threads
              • The forum ‘Cloverleaf’ is closed to new topics and replies.