From owner-freebsd-questions Tue May 16 23: 0:16 2000 Delivered-To: freebsd-questions@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by hub.freebsd.org (Postfix) with ESMTP id 7033F37BBC6 for ; Tue, 16 May 2000 23:00:12 -0700 (PDT) (envelope-from DougB@gorean.org) Received: from gorean.org (doug@master [10.0.0.2]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id WAA58856; Tue, 16 May 2000 22:59:48 -0700 (PDT) (envelope-from DougB@gorean.org) Message-ID: <39223554.E45081A@gorean.org> Date: Tue, 16 May 2000 22:59:48 -0700 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.72 [en] (X11; U; FreeBSD 5.0-CURRENT-0508 i386) X-Accept-Language: en MIME-Version: 1.0 To: Marc Silver Cc: freebsd-questions@freebsd.org Subject: Re: "Hangup" in mail from cron References: <20000517074925.F58332@draenor.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Marc Silver wrote: > > What are you running from cron? Yeah, I realized that I neglected that detail in my post. :) I'm running a script that I wrote to rotate web server logs. Here is the relevant part of one of the scripts: if [ -n "${PID}" ]; then kill -HUP $PID else echo "Couldn't HUP $PID" ps -auxww | grep httpd | grep -v grep /usr/local/sbin/apachectl stop /usr/local/sbin/apachectl start fi The odd thing is, it is actually doing the kill. But for some reason it's also sending the word "Hangup" as if something generated output on stderr. Doug -- "Live free or die" - State motto of my ancestral homeland, New Hampshire Do YOU Yahoo!? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message