public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cron dying in Windows but not in Cygwin
@ 2004-05-26 17:48 Robert Pollard
  2004-05-26 19:59 ` Dave Korn
  2004-05-27  0:17 ` Thorsten Kampe
  0 siblings, 2 replies; 6+ messages in thread
From: Robert Pollard @ 2004-05-26 17:48 UTC (permalink / raw)
  To: Cygwin

Hello all,

I have a bit of a problem where when we launch cron from the command 
line after a few days it dies in Windows but is still visible in 
Cygwin.  Currently, I run a script that launches /usr/sbin/cron.  This 
script only launches cron if it isn't running.

Does it have something to do with not launching from an rc file? Or, 
does it matter?

Any ideas?  Need more info?

Let me know.

Thanks,

Robert Pollard


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: cron dying in Windows but not in Cygwin
  2004-05-26 17:48 cron dying in Windows but not in Cygwin Robert Pollard
@ 2004-05-26 19:59 ` Dave Korn
  2004-05-27  0:17 ` Thorsten Kampe
  1 sibling, 0 replies; 6+ messages in thread
From: Dave Korn @ 2004-05-26 19:59 UTC (permalink / raw)
  To: 'Cygwin'

> -----Original Message-----
> From: cygwin-owner On Behalf Of Robert Pollard
> Sent: 26 May 2004 17:34
> To: Cygwin
> Subject: cron dying in Windows but not in Cygwin
> 
> Hello all,
> 
> I have a bit of a problem where when we launch cron from the command 
> line after a few days it dies in Windows but is still visible in 
> Cygwin.  

aka 'zombie process' perhaps?  Which IIUIC is caused by cron exiting while
it still has a child process running?

>Currently, I run a script that launches 
> /usr/sbin/cron.  This 
> script only launches cron if it isn't running.
> 
> Does it have something to do with not launching from an rc file? Or, 
> does it matter?
> 
> Any ideas?  Need more info?

What's in your crontab?  To be precise, what (if anything) is in the crontab
at around the same time as when the cron process dies....?

Does anything show up in the windoze event logs at around the same time?


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cron dying in Windows but not in Cygwin
  2004-05-26 17:48 cron dying in Windows but not in Cygwin Robert Pollard
  2004-05-26 19:59 ` Dave Korn
@ 2004-05-27  0:17 ` Thorsten Kampe
  2004-05-27  9:55   ` Dave Korn
  1 sibling, 1 reply; 6+ messages in thread
From: Thorsten Kampe @ 2004-05-27  0:17 UTC (permalink / raw)
  To: cygwin

* Robert Pollard (2004-05-26 18:33 +0100)
> I have a bit of a problem where when we launch cron from the command 
> line after a few days it dies in Windows but is still visible in 
> Cygwin.

Beg your pardon? Your sentence doesn't make sense to me.

> Currently, I run a script that launches /usr/sbin/cron.  This 
> script only launches cron if it isn't running.
> 
> Does it have something to do with not launching from an rc file?

Excuse me? rc files are /configuration/ files...

> Or, does it matter?
> 
> Any ideas?

http://www.cygwin.com/ml/cygwin/2004-03/msg00379.html

> Need more info?

More info? At least some info. And you should definitely consider
reading the FAQ and the users' guide to gather some knowledge what
Windows and Cygwin are and how they relate.


Thorsten


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: cron dying in Windows but not in Cygwin
  2004-05-27  0:17 ` Thorsten Kampe
@ 2004-05-27  9:55   ` Dave Korn
  2004-05-27 13:25     ` Thorsten Kampe
  0 siblings, 1 reply; 6+ messages in thread
From: Dave Korn @ 2004-05-27  9:55 UTC (permalink / raw)
  To: cygwin

> -----Original Message-----
> From: cygwin-owner On Behalf Of Thorsten Kampe
> Sent: 26 May 2004 23:06

> * Robert Pollard (2004-05-26 18:33 +0100)
> > I have a bit of a problem where when we launch cron from 
> the command 
> > line after a few days it dies in Windows but is still visible in 
> > Cygwin.
> 
> Beg your pardon? Your sentence doesn't make sense to me.
> 
> > Currently, I run a script that launches /usr/sbin/cron.  This 
> > script only launches cron if it isn't running.
> > 
> > Does it have something to do with not launching from an rc file?
> 
> Excuse me? rc files are /configuration/ files...

  Have you ever actually *read* one?  They're shell scripts.


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cron dying in Windows but not in Cygwin
  2004-05-27  9:55   ` Dave Korn
@ 2004-05-27 13:25     ` Thorsten Kampe
  2004-05-27 13:36       ` Vince Hoffman
  0 siblings, 1 reply; 6+ messages in thread
From: Thorsten Kampe @ 2004-05-27 13:25 UTC (permalink / raw)
  To: cygwin

* Dave Korn (2004-05-27 11:26 +0100)
>> * Robert Pollard (2004-05-26 18:33 +0100)
>>> I have a bit of a problem where when we launch cron from 
>> the command 
>>> line after a few days it dies in Windows but is still visible in 
>>> Cygwin.
>> 
>> Beg your pardon? Your sentence doesn't make sense to me.
>> 
>>> Currently, I run a script that launches /usr/sbin/cron.  This 
>>> script only launches cron if it isn't running.
>>> 
>>> Does it have something to do with not launching from an rc file?
>> 
>> Excuse me? rc files are /configuration/ files...
> 
>   Have you ever actually *read* one?  They're shell scripts.

You mean the runlevel scripts in rc.d? They're neither part of the
default Cygwin nor of cron installation so I didn't think of these.
/I/ meant "rc files" like bashrc, zshrc, etc.

This misunderstanding proves only two things:

1. People who are retentive with facts and descriptions (like RP)
provoke misunderstandings inevitably.

2. If RP had even a slight understanding of Cygwin, he would have
known that no "runlevel script" is required to start a "Cygwin
service/daemon" (because there are no Cygwin services or daemons; just
Windows services.)

But I'm not even sure that RP read the cron readme so 2. may be
pointless.


Thorsten


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: cron dying in Windows but not in Cygwin
  2004-05-27 13:25     ` Thorsten Kampe
@ 2004-05-27 13:36       ` Vince Hoffman
  0 siblings, 0 replies; 6+ messages in thread
From: Vince Hoffman @ 2004-05-27 13:36 UTC (permalink / raw)
  To: Thorsten Kampe; +Cc: cygwin



On Thu, 27 May 2004, Thorsten Kampe wrote:

> * Dave Korn (2004-05-27 11:26 +0100)
> >> * Robert Pollard (2004-05-26 18:33 +0100)
> >>> I have a bit of a problem where when we launch cron from
> >> the command
> >>> line after a few days it dies in Windows but is still visible in
> >>> Cygwin.
> >>
> >> Beg your pardon? Your sentence doesn't make sense to me.
> >>
> >>> Currently, I run a script that launches /usr/sbin/cron.  This
> >>> script only launches cron if it isn't running.
> >>>
> >>> Does it have something to do with not launching from an rc file?
> >>
> >> Excuse me? rc files are /configuration/ files...
> >
> >   Have you ever actually *read* one?  They're shell scripts.
>
> You mean the runlevel scripts in rc.d? They're neither part of the
> default Cygwin nor of cron installation so I didn't think of these.
> /I/ meant "rc files" like bashrc, zshrc, etc.
>
> This misunderstanding proves only two things:
>
> 1. People who are retentive with facts and descriptions (like RP)
> provoke misunderstandings inevitably.
>
> 2. If RP had even a slight understanding of Cygwin, he would have
> known that no "runlevel script" is required to start a "Cygwin
> service/daemon" (because there are no Cygwin services or daemons; just
> Windows services.)
>
Umm hate to throw this in but....
you can start sshd (and presumably cron although i've never tried,) as
daemons rather than services
if you install and use the sysv init package and install it as a service
and setup your /etc/init.d scripts correctly.
this is how i run sshd and xinet on my laptop. however it takes a bit more
work for no great gain.

just muddying the waters, sorry.

Vince

> But I'm not even sure that RP read the cron readme so 2. may be
> pointless.
>
>
> Thorsten
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-05-27 13:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-26 17:48 cron dying in Windows but not in Cygwin Robert Pollard
2004-05-26 19:59 ` Dave Korn
2004-05-27  0:17 ` Thorsten Kampe
2004-05-27  9:55   ` Dave Korn
2004-05-27 13:25     ` Thorsten Kampe
2004-05-27 13:36       ` Vince Hoffman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).