From owner-freebsd-questions@FreeBSD.ORG Wed Jan 13 21:04:17 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 11EFF10656C0 for ; Wed, 13 Jan 2010 21:04:17 +0000 (UTC) (envelope-from jeronimocalvop@googlemail.com) Received: from mail-ew0-f211.google.com (mail-ew0-f211.google.com [209.85.219.211]) by mx1.freebsd.org (Postfix) with ESMTP id 94D988FC0C for ; Wed, 13 Jan 2010 21:04:16 +0000 (UTC) Received: by ewy3 with SMTP id 3so80634ewy.13 for ; Wed, 13 Jan 2010 13:04:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=C92QQW6P8kZQcwgaVamxFPLuinFmC446bDVGMrkOAGI=; b=rSwhmvIwlpYT7v/cZasGvfrXVS0JOJST23Qznl83P/tqLxo7dkNXlCPSfvRShKbJFt Fij/Cjo0yRlQlxtqP7obB47TkjYT9sdEzd4xV2sMsuRJUrkt3jDIryz5xmqmPtXqm1PL FFuQDqdjoRmVji7tRpF7v22STl6MGVM9+KTIQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=l1W3XOlNb1cAgMr7WS12KghKqZPYaIckA3jVxVTbo921t3jniNmE+2yh/s35SPQcmQ b2d5DHD5UUC+8jqLV2RyyAIwHL5okuVywGDqdq4ecj3ScM6/YK6mAf7PV0lcS0LjCe8G 9haOP0ONWZLO2AWPjl7LnZg1Nf6hFXf2HWBjw= MIME-Version: 1.0 Received: by 10.216.86.142 with SMTP id w14mr3119489wee.74.1263416649404; Wed, 13 Jan 2010 13:04:09 -0800 (PST) In-Reply-To: <4B4E329D.4090806@lazlarlyricon.com> References: <4B4E329D.4090806@lazlarlyricon.com> Date: Wed, 13 Jan 2010 21:04:09 +0000 Message-ID: From: Jeronimo Calvo To: Rolf Nielsen Content-Type: text/plain; charset=ISO-8859-1 Cc: FreeBSD Questions Subject: Re: Crontab not working logwatch.pl [FreeBSD 8 stable] 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, 13 Jan 2010 21:04:17 -0000 did a crontab -r, a a new crontab -e, using: * * * * * $HOME/.profile ; /bin/bash /var/log/auto_auth.sh * * * * * $HOME/.profile ; /usr/bin/perl /local/sbin/logwatch.pl tailing the /var/log/cron I can see that is being executed every minute... but no emails arrived with is the proof that the script has worked. 2010/1/13 Rolf Nielsen : > On 2010-01-13 21:43, Jeronimo Calvo wrote: >> >> Hi folks, >> >> Im having probs when a root crontab located on /var/cron/tabs/root >> >> with this content >> # DO NOT EDIT THIS FILE - edit the master and reinstall. >> # (/tmp/crontab.DUtgfVoBT0 installed on Wed Jan 13 20:08:29 2010) >> # (Cron version -- $FreeBSD: src/usr.sbin/cron/crontab/crontab.c,v >> 1.31.2.1 2009/08/03 08:13:06 kensmith Exp $) >> * * * * * ~/.profile ; /bin/bash /var/log/auto_auth.sh >> * * * * * ~/.profile ; /usr/bin/perl /local/sbin/logwatch.pl >> >> both of them are sending logs to my email, when runned from the >> command line works, but not from crontab >> any ideas? >> > > The keywords here are > # DO NOT EDIT THIS FILE - edit the master and reinstall. > > Either edit the system crontab, /etc/crontab, or, to edit root's crontab, > run crontab -e as root. > -- () ASCII Ribbon Campaign | Against HTML e-mail /\ www.asciiribbon.org | Against proprietary extensions