• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Does FOG have a timetick event?

    Scheduled Pinned Locked Moved
    General
    2
    3
    1.1k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Asthea
      last edited by Asthea

      I’m trying to make a plugin that scans a folder periodically to detect any addition/removal of files. The problem is, when I try to implement this functionality with a simple while(true)-loop and sleep(), FOG completely stops working. Does FOG have some sort of TimeTick-Event that I can use for this mechanism?

      Thanks. 🙂

      1 Reply Last reply Reply Quote 0
      • J
        Joe Schmitt Senior Developer
        last edited by Joe Schmitt

        @Asthea not that I am aware of. You could spawn a new thread that makes a local timetick event. Or you could make it as a Service, which would prevent any web portal freezing altogether.

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        1 Reply Last reply Reply Quote 1
        • A
          Asthea
          last edited by Asthea

          @Jbob Yes, spawning a new thread was what I was going to try out next. Thanks for the help. 😄

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          131

          Online

          12.1k

          Users

          17.3k

          Topics

          155.3k

          Posts
          Copyright © 2012-2024 FOG Project