Hi Benny,
On 2017-01-16 02:47:22, you wrote to All:
BP> model:
BP> if bash-lock-file exists
BP> do nothing
BP> else
BP> create bash-lock-file
BP> do hpt
BP> do htick
BP> delete bash-lock-file
BP> endif
Your model is wrong! The checking and creating of the lock file should be one
atomic operation!
So use:
if create bash-lock-file succeeds
do hpt
do htick
delete bash-lock-file
else
do nothing
endif
Most distributions have a command for that. For instance 'lockfile'.
Bye, Wilfred.
--- FMail-W32 1.73.12.64-B20170112
* Origin: FMail development HQ (2:280/464)
|