From owner-freebsd-performance@FreeBSD.ORG Thu Oct 20 13:05:46 2005 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3D9D16A420 for ; Thu, 20 Oct 2005 13:05:46 +0000 (GMT) (envelope-from tuliogs@pgt.mpt.gov.br) Received: from mitra.mpt.gov.br (mail.pgt.mpt.gov.br [200.157.62.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 708D243D68 for ; Thu, 20 Oct 2005 13:05:44 +0000 (GMT) (envelope-from tuliogs@pgt.mpt.gov.br) Received: from [10.0.0.136] (516e.pgt.mpt.gov.br [10.0.0.136]) by mail.pgt.mpt.gov.br (8.13.1/8.13.1) with ESMTP id j9KD5kMn013793 for ; Thu, 20 Oct 2005 11:05:46 -0200 (BRST) (envelope-from tuliogs@pgt.mpt.gov.br) Message-ID: <435795E1.2020507@pgt.mpt.gov.br> Date: Thu, 20 Oct 2005 11:04:33 -0200 From: =?ISO-8859-1?Q?Tulio_Guimar=E3es_da_Silva?= User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-performance@freebsd.org References: <20051020115108.11114.qmail@web31110.mail.mud.yahoo.com> In-Reply-To: <20051020115108.11114.qmail@web31110.mail.mud.yahoo.com> Content-Type: multipart/mixed; boundary="------------000805020305070404000108" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: crontab-smb probs X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2005 13:05:47 -0000 --------------000805020305070404000108 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mail.pgt.mpt.gov.br id j9KD5kMn013793 Hello, from the error message originator - env(1) -, I=B4d say there=B4s some= =20 environment variable missing at run. Crond does not execute ~/.profile=20 and similars, which is normally where these variables are defined, and=20 then they must be set by the shellscript itself. In short, mrtg is being called from "run.sh", therefore you=B4ll have t= o=20 specify its path, and probably some other variables, inside this script.=20 That must work. Or, in a better way, call it from the system=B4s crontab, as described=20 in the cron section of the Handbook. It=B4s worth a look. ;) Good luck, :) T=FAlio G. da Silva P.S.: I (too) guess this is not the appropriate list to look for help on=20 this subject; "freebsd-questions" should bring you better results, if=20 this one fails. ;) Or else, eirini wrote: >That's exactly what I have done! I suspect that there >is on another crontab file (?) a reference to an mrtg >folder cause now I have moved my run.sh to another >folder and my crontab line is like this: > >*/5 * * * * /usr/local/www/run.sh=20 >=20 >no mrtg anywhere :) :) > >but still get this mail!!! : > >Message 1: >>From root@BSD.BSD.org Thu Oct 20 14:30:01 2005 >Date: Thu, 20 Oct 2005 14:30:00 +0300 (EEST) >From: root@BSD.BSD.org (Cron Daemon) >To: root@BSD.BSD.org >Subject: Cron /usr/local/www/run.sh=20 >X-Cron-Env: >X-Cron-Env: >X-Cron-Env: >X-Cron-Env: >X-Cron-Env: > >env: mrtg: No such file or directory >------------ >Thank you=20 >Spen > > > =09 >__________________________________=20 >Yahoo! Music Unlimited=20 >Access over 1 million songs. Try it free. >http://music.yahoo.com/unlimited/ >_______________________________________________ >freebsd-performance@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-performance >To unsubscribe, send any mail to "freebsd-performance-unsubscribe@freebs= d.org" > > > =20 > --------------000805020305070404000108--