I have a launchd plist that uses StartCalendarInterval to start my python script at the desired time and day of the week.
Now I want to create a launchd plist that both starts and terminates a different python script at selected times. Where is the "KillCalender" command or equivalent?
Essentially, I want the program the controls my Christmas lights come on at 1800 and go off at 2200.
I suppose I could write the main loop in my python program so it terminates at 2200 but I was hoping launchd could do this for me.
Aucun commentaire:
Enregistrer un commentaire