From owner-freebsd-questions@FreeBSD.ORG Thu Jun 8 06:29:02 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED0A616DBB9 for ; Thu, 8 Jun 2006 04:23:49 +0000 (UTC) (envelope-from atom.powers@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A9BE43D46 for ; Thu, 8 Jun 2006 04:23:49 +0000 (GMT) (envelope-from atom.powers@gmail.com) Received: by nz-out-0102.google.com with SMTP id 13so333128nzn for ; Wed, 07 Jun 2006 21:23:49 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YbOQXuk/DUl+vF/u2j0o3A1JDyy2S5Zt5B+kNX51vlmitiTEhSr/YSbK7ZqUCMlV9AwHA7GEi27BxniRLGRuNGjCYhfAP/xkWNA48InwsUq/dDr1/QI1I6KFfDG47ZM0XPCpMEOiaEZd8CJ3+HhyQK0n2hdXHuVSH+cygtGElZw= Received: by 10.64.10.5 with SMTP id 5mr1353859qbj; Wed, 07 Jun 2006 21:23:48 -0700 (PDT) Received: by 10.65.151.6 with HTTP; Wed, 7 Jun 2006 21:23:48 -0700 (PDT) Message-ID: Date: Wed, 7 Jun 2006 21:23:48 -0700 From: "Atom Powers" To: "Olivier Nicole" In-Reply-To: <200606080321.k583Lto6083694@banyan.cs.ait.ac.th> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200606080321.k583Lto6083694@banyan.cs.ait.ac.th> Cc: freebsd-questions@freebsd.org Subject: Re: how does cron exec jobs? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Jun 2006 06:29:02 -0000 On 6/7/06, Olivier Nicole wrote: > > How can I simulate a cron job from the shell? There must be something > > different about the way cron is executing this command... > > Counld be different environment variables set, different working > directory... That's what I'm trying to find out. The cron man pages are ... empty on the subject. > Any diagnostic when it hangs? Not that I can tell. It runs on schedule but it never clears it's locks (which it puts on files at is edits them) as it is supposed to; and it does when run from the shell. So it truth, it's not so much that it "hangs", it does terminate, but it doesn't honor it's lock time-outs like it does when run outside of cron. -- -- Perfection is just a word I use occasionally with mustard. --Atom Powers--