Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jan 2006 10:06:28 +0100
From:      bsd <bsd@todoo.biz>
To:        Liste FreeBSD <freebsd-questions@freebsd.org>
Subject:   Cron script redirection (probably stderr problem ?)
Message-ID:  <6F61FBCF-8AC8-4EEF-935F-BEF1EF0E56CF@todoo.biz>

next in thread | raw e-mail | index | archive | help
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 <format:bdb1_btree> 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






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6F61FBCF-8AC8-4EEF-935F-BEF1EF0E56CF>