Re: [Tutor] Lock File Usage

2017-02-01 Thread Ben Finney
"ad^2" writes: > Thanks for the help guys. This is what I ended up going with that works. > > Requires: lockfile, syslog and os modules You're probably aware, but for others reading this thread: The ‘lockfile’ library is explicitly deprecated by its maintainers https://pypi.python.org/pypi/lock

Re: [Tutor] How to interact with the result of subprocess.call()

2017-02-01 Thread Jim
On 12/26/2016 04:48 AM, Peter Otten wrote: Jim Byrnes wrote: Is there a way to terminate subprocess and still keep LO open so pykeyboard can send it keystrokes from the script? In theory you can open Libre Office from another thread, wait a moment and then send it keystrokes from the main thr

Re: [Tutor] Lock File Usage

2017-02-01 Thread ad^2
On Mon, Jan 30, 2017 at 7:33 PM, Ben Finney wrote: > "ad^2" writes: > > > So, IF: no lock file, create a lock file, execute, delete lock file > > when finished successfully. ElSE: the script is running, exit. Then, > > cron will try again an hour later. > > > > I do not necessarily require a "l