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

2013-03-16 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, ilugd-requ...@lists.linux-delhi.orgwrote:

 Send Ilugd mailing list submissions to
 ilugd@lists.linux-delhi.org

 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
 ilugd-requ...@lists.linux-delhi.org

 You can reach the person managing the list at
 ilugd-ow...@lists.linux-delhi.org

 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
   (nkap...@webrachna.com)
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: nkap...@webrachna.com
 To: ilugd@lists.linux-delhi.org
 Subject: [ilugd] ILUG-D Activity Report: Mar-08-2013 to Mar-15-2013
 Message-ID: 201303150240.r2f2e2fm025...@images.kandalaya.org
 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 satishmala...@gmail.com
 To: linux delhi ilugd@lists.linux-delhi.org
 Subject: [ilugd] Help required to setup a cron job
 Message-ID:
 CAH2eR3VtuqcR6737iM712j6N=Lo=
 g096-hjf2yawrpjarjq...@mail.gmail.com
 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 abhi...@abhinav.org
 To: Satish Kr Malanch satishmala...@gmail.com
 Cc: linux delhi ilugd@lists.linux-delhi.org
 Subject: Re: [ilugd] Help required to setup a cron job
 Message-ID: 20130315070346.GA78738@Abhinav-Gupta.local
 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
 Ilugd@lists.linux-delhi.org
 http://frodo.hserus.net/mailman/listinfo/ilugd


 End of Ilugd Digest, Vol 40, Issue 8
 

___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd


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 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


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
Ilugd@lists.linux-delhi.org
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  http://sd-malanch.blogspot.in/
___
Ilugd mailing list
Ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd