Sleep()?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve

    Sleep()?

    Hi,

    Is there some way to implement a timer in python? I want to open a
    process and pipe a log out of it every 10 minutes. How can I do this? Thanks


    Steve

  • BW Glitch

    #2
    Re: Sleep()?

    Steve wrote:[color=blue]
    > Hi,
    >
    > Is there some way to implement a timer in python? I want to open a
    > process and pipe a log out of it every 10 minutes. How can I do this?
    > Thanks[/color]

    Check time.sleep()

    --
    Glitch

    -----BEGIN TF FAN CODE BLOCK-----
    G+++ G1 G2+ BW++++ MW++ BM+ Rid+ Arm-- FR+ FW-
    #3 D+ ADA N++ W OQP MUSH- BC- CN++ OM P75
    -----END TF FAN CODE BLOCK-----

    "Blehhh! To think that a warrior must become a ... a rat patrol."
    -- Dinobot, "Coming of the Fuzors" II

    Comment

    • Matt Gerrans

      #3
      Re: Sleep()?

      "Steve" wrote:[color=blue]
      > Is there some way to implement a timer in python? I want to open a
      > process and pipe a log out of it every 10 minutes. How can I do this?[/color]
      Thanks

      I think the Timer class in the threading module sounds like exactly what you
      want.


      Comment

      Working...