Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Good points. (1) I think if I run the cron in the middle of the night that's unlikely to happen. (2) If it does happen we just miss a little learning and no real harm is done. I'll go for simplicity and clarity rather than worry about race conditions. Is my syntax correct? (Respond in your answer and I can accept it.) Commented Jan 8, 2017 at 21:14
  • You almost certainly want to remove the contents of the new and cur directories, not the directories themselves, so I'd change it. But... I can't recommend that you do that. It's easy enough to move them into a spool folder and probably even increases clarity too. Commented Jan 8, 2017 at 21:16
  • Please review the update to my question with solution along the lines you've suggested. Commented Jan 8, 2017 at 22:58