in reply to Doing every X seconds
I hope you need threads
Create two threads, 1.First thread for normal flow (print("Doing Jobs";)) 2.Second thread for (Checking FILE...Every 5 seconds)