Check it out: http://mywiki.wooledge.org/BashFAQ/045

Summary: Use flock.

"man -s 1 flock" provides examples on usage that may suit you.



On Fri, Mar 15, 2013 at 11:27 AM, Satish Kr Malanch <satishmala...@gmail.com
> wrote:

> Hello all,
> Can anyone plz help me create a scrropt to run a cron job
>
> , I have schedule fetmail in every 5 minutes. but some time my cron get
> stucked due to another running instance
>
> I want a script that execute in every 3 minutes and check whether fetchmail
> is running or not if running then abort it and re run.
>
> Thanks s
>
> --
> With Best Regards:
> *Satish Kr Malanch*
> ----------------------------------------------------
> "The only real voyage of discovery consists not in seeking new landscapes
> but in having new eyes. "
>
> ----------------------------------------------------------------------------------------------------------------------------------
> Visit my Blog by clicking here  <http://sd-malanch.blogspot.in/>
> _______________________________________________
> Ilugd mailing list
> Ilugd@lists.linux-delhi.org
> http://frodo.hserus.net/mailman/listinfo/ilugd
>
_______________________________________________
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to