Re: [ilugd] Help required to setup a cron job

2013-03-16 Thread Anoop Sharma
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  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  
> ___
> Ilugd mailing list
> [email protected]
> http://frodo.hserus.net/mailman/listinfo/ilugd
>
___
Ilugd mailing list
[email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] Help required to setup a cron job

2013-03-15 Thread Aman Thakur
I think Shell Script would be a better optionmake a script and put on
the startup..but you can also make a C daemon for this purpose

On Sat, Mar 16, 2013 at 12:30 AM, wrote:

> Send Ilugd mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://frodo.hserus.net/mailman/listinfo/ilugd
> or, via email, send a message with subject or body 'help' to
> [email protected]
>
> You can reach the person managing the list at
> [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Ilugd digest..."
>
>
> Today's Topics:
>
>1.  ILUG-D Activity Report: Mar-08-2013 to Mar-15-2013
>   ([email protected])
>2.  Help required to setup a cron job (Satish Kr Malanch)
>3. Re:  Help required to setup a cron job (Abhinav Gupta)
>
>
> --
>
> Message: 1
> Date: Fri, 15 Mar 2013 08:10:02 +0530
> From: [email protected]
> To: [email protected]
> Subject: [ilugd] ILUG-D Activity Report: Mar-08-2013 to Mar-15-2013
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="us-ascii"
>
> Fri 15-Mar-2013: ILUG-D Activity Report: Mar-08-2013 to Mar-15-2013:
> ===
>
> New/recent events: 0   Total events: 83
> =
> New Discussion forum postings: 0   Total topics: 657  Total posts: 1142
> =
> New News items: 0   Total News items: 383
> =
> New comments: 0Total comments: 261
> =
> New pictures: 0Total pictures: 231
> =
> New members: 0   Total members: 7057
> =
>
> Send your suggestions, comments or feedback to admin_at_linux-delhi_dot_org
>
>
> --
> This email is brought to you by http://www.linux-delhi.org/ - India Linux
> Users Group - Delhi.
>
>
> --
>
> Message: 2
> Date: Fri, 15 Mar 2013 11:27:44 +0530
> From: Satish Kr Malanch 
> To: linux delhi 
> Subject: [ilugd] Help required to setup a cron job
> Message-ID:
>  [email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> 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/>
>
>
> --
>
> Message: 3
> Date: Fri, 15 Mar 2013 12:33:46 +0530
> From: Abhinav Gupta 
> To: Satish Kr Malanch 
> Cc: linux delhi 
> Subject: Re: [ilugd] Help required to setup a cron job
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
>
> On 03/15/13 11:27:44 AM, Satish Kr Malanch 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.
> >
>
> Try daemontools. - http://cr.yp.to/daemontools.html
>
> - Abhinav
>
>
>
> --
>
> ___
> Ilugd mailing list
> [email protected]
> http://frodo.hserus.net/mailman/listinfo/ilugd
>
>
> End of Ilugd Digest, Vol 40, Issue 8
> 
>
___
Ilugd mailing list
[email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd


Re: [ilugd] Help required to setup a cron job

2013-03-15 Thread Abhinav Gupta
On 03/15/13 11:27:44 AM, Satish Kr Malanch 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.
> 

Try daemontools. - http://cr.yp.to/daemontools.html

- Abhinav

___
Ilugd mailing list
[email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd


[ilugd] Help required to setup a cron job

2013-03-14 Thread Satish Kr Malanch
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  
___
Ilugd mailing list
[email protected]
http://frodo.hserus.net/mailman/listinfo/ilugd