Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Barry Margolin <barmar@genuity.net>
Subject: Re: Cron and background process problems
Date: 2000/04/07	[thread overview]
Message-ID: <VvsH4.82$Nc4.2036@burlma1-snr2> (raw)
In-Reply-To: 38ee53a1@news.together.net

In article <38ee53a1@news.together.net>,
Dale Caldwell <dalec@together.net> wrote:
>This script works great manually.  I can kill all or selective processes,
>run my script and the appropriate action is taken, then the log file is
>emailed to me.
>
>If I put the script into crontab, running every 5 minutes,  the log file is
>sent, but the processes don't exist.

Many people post messages saying that a script works fine manually, but not
from cron.  This is almost always due to the fact that the script depends
on environment settings from their .profile, .login, or .cshrc.  Since none
of these are executed by a cron job, scripts that depend on them fail.

>I suspect that every time cron runs, restarts the 'dead' process, it then
>shuts down.  When cron shuts down, the processes are being killed.

I don't think so.

-- 
Barry Margolin, barmar@genuity.net
Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.



      reply	other threads:[~2000-04-07  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-07  4:00 Cron and background process problems Dale Caldwell
2000-04-07  4:00 ` Barry Margolin [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox