Is there a way to schedule my script?
John Gordon
gordon at panix.com
Wed Dec 17 15:23:33 EST 2014
In <mailman.17012.1418845926.18130.python-list at python.org> Juan Christian <juan0christian at gmail.com> writes:
> The standard system "kill" command would probably work for this purpose,
> assuming you have access to your main program's process ID.
> There isn't any 'prettier' way? Such as a built-in or third-party module
> for something common like that?
If you're on Unix, 'kill' and 'cron' are already built-in.
If you want to solve your problem entirely within Python, look at the
"scheduler" module. (Although even this isn't a complete solution, as you
still have to make sure the program is running in the first place...)
--
John Gordon Imagine what it must be like for a real medical doctor to
gordon at panix.com watch 'House', or a real serial killer to watch 'Dexter'.
More information about the Python-list
mailing list