From owner-freebsd-questions@FreeBSD.ORG Wed Jan 18 09:06:40 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 A944A16A41F for ; Wed, 18 Jan 2006 09:06:40 +0000 (GMT) (envelope-from bsd@todoo.biz) Received: from newmail.rmm.fr (newmail.rmm.fr [195.115.46.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D8E343D60 for ; Wed, 18 Jan 2006 09:06:35 +0000 (GMT) (envelope-from bsd@todoo.biz) Received: from localhost (localhost [127.0.0.1]) by newmail.rmm.fr (Postfix) with ESMTP id 8A26428777 for ; Wed, 18 Jan 2006 10:06:33 +0100 (CET) Received: from newmail.rmm.fr ([127.0.0.1]) by localhost (newmail.rmm.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 66806-07 for ; Wed, 18 Jan 2006 10:06:30 +0100 (CET) Received: from [10.0.1.3] (me.todoo.biz [82.66.93.242]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by newmail.rmm.fr (Postfix) with ESMTP id 6AF842876D for ; Wed, 18 Jan 2006 10:06:30 +0100 (CET) Mime-Version: 1.0 (Apple Message framework v746.2) Content-Transfer-Encoding: quoted-printable Message-Id: <6F61FBCF-8AC8-4EEF-935F-BEF1EF0E56CF@todoo.biz> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed To: Liste FreeBSD From: bsd Date: Wed, 18 Jan 2006 10:06:28 +0100 X-Mailer: Apple Mail (2.746.2) X-Virus-Scanned: by amavisd-new at rmm.fr Subject: Cron script redirection (probably stderr problem ?) 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: Wed, 18 Jan 2006 09:06:40 -0000 Hello, I am using a little cron script to update my server that calls =20 "portsnap". Once this is done there is another piece of script that =20 tells me which port(s) is to be updated with a simple call to a =20 script that mainly execute portversion -l "<" and mail me the output =20 of the command. There is one little problem with that script : Cron mails me (root) each time this output (probably because it comes =20= from standerr ?) : > [Updating the portsdb in /usr/ports ... - 14011 =20= > port entries found .........=20 > 1000.........2000.........3000.........4000.........5000.........6000.=20= > ........=20 > 7000.........8000.........9000.........10000.........11000.........120=20= > 00.........13000.........14000 ..... done] The cron script is executed as follow : 0 3 * * * /usr/local/sbin/portsnap cron && /usr/local/sbin/portsnap -=20 I update && /root/src/upgrade.sh > /var/log/upgrade.log I've tried to add a 2>&1 at the end of the script : 0 3 * * * /usr/local/sbin/portsnap cron && /usr/local/sbin/portsnap -=20 I update && /root/src/upgrade.sh > /var/log/upgrade.log 2>&1 But this does not seem to change my problem. Any help ? ________________________________________________ =AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?= =BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7 =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF= =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF Gregober ---> PGP ID --> 0x1BA3C2FD bsd @at@ todoo.biz ________________________________________________ =AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?= =BB=A7=AB?=BB=A5=AB?=BB=A7=AB?=BB=A5=AB?=BB=A7 =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF= =AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF=AF