[Tutor] Running Python Scripts at same time

Mats Wichmann mats at wichmann.us
Sat Jun 27 21:27:43 EDT 2020


On June 26, 2020 4:21:02 AM MDT, John Weller <john at johnweller.co.uk> wrote:
>I have a Python program which will be running 24/7 (I hope 😊).  It is
>generating data in a file which I want to clean up overnight.  The way
>I am looking at doing it is to run a separate program as a Cron job at
>midnight – will that work?  The alternative is to add it to the loop
>and check for the time. I have tried researching this but only got even
>more confused.
>
> 
>
>Thanks
>
> 
>
>John
>
> 
>
>John Weller
>
>01380 723235
>
>07976 393631
>
> 
>
>_______________________________________________
>Tutor maillist  -  Tutor at python.org
>To unsubscribe or change subscription options:
>https://mail.python.org/mailman/listinfo/tutor

a common technique is a "log rotate" one... I see it's got a wikipedia page, take a look for some ideas.
-- 
Sent from a mobile device with K-9 Mail. Please excuse my brevity.


More information about the Tutor mailing list