This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
faq:how_can_i_prevent_a_job_from_executing_twice [2010/12/14 10:45]
robert [How can I prevent a job from executing twice?]
faq:how_can_i_prevent_a_job_from_executing_twice [2017/08/17 11:21] (current)
Line 53: Line 53:
 lockfile = [outfile '​.lock'​];​ lockfile = [outfile '​.lock'​];​
-% test for the presence of the lockfile 
 if ~exist(lockfile,​ '​file'​) if ~exist(lockfile,​ '​file'​)
   % create the lockfile   % create the lockfile