Quantcast
Channel: Allow one entry at a time in incron job? - Unix & Linux Stack Exchange
Browsing latest articles
Browse All 3 View Live

Answer by Shafiq for Allow one entry at a time in incron job?

One simplest solution example: suppose 1 means file is locked (previous script is already running) and 0 means unlocked (No process running). Then here is the code state=`cat /tmp/my_lck` if [ "$state"...

View Article



Answer by Gilles 'SO- stop being evil' for Allow one entry at a time in...

No, incron doesn't have a built-in lock feature. If you want to prevent jobs from running at the same time, do it from within the job. If you want to delay a job until the previous one(s) have...

View Article

Allow one entry at a time in incron job?

I have a directory to monitor. When it is updated, I run some command via incron. When multiple files are copied in this directory, incron execute multiple commands at the same time. Is there any way...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images