From owner-freebsd-questions@FreeBSD.ORG Wed Oct 4 00:36:30 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 87C4116A412 for ; Wed, 4 Oct 2006 00:36:30 +0000 (UTC) (envelope-from freebsd.ph@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id F076643D46 for ; Wed, 4 Oct 2006 00:36:29 +0000 (GMT) (envelope-from freebsd.ph@gmail.com) Received: by py-out-1112.google.com with SMTP id o67so3056779pye for ; Tue, 03 Oct 2006 17:36:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=MY9Cwf8dCZUKQJkC8+LcMx4MbOAph9VMogOaEpUdtvo1mEwfbC3rm7VzkKOw9ZQsN9j1viJ/BpNTIaJ/MN7N7bS4y5fd2f7E1dqIrWxLxlXbZbZ2Tqre8BOMuISOB/FdgSKqt27kF8jPSZch4NfqGar9Ui1SZV2DSGGndWW3ZSk= Received: by 10.65.234.3 with SMTP id l3mr10174099qbr; Tue, 03 Oct 2006 17:36:29 -0700 (PDT) Received: by 10.65.103.5 with HTTP; Tue, 3 Oct 2006 17:36:29 -0700 (PDT) Message-ID: Date: Wed, 4 Oct 2006 08:36:29 +0800 From: "jan gestre" To: "Ivan Levchenko" , "freebsd-questions@freebsd.org" In-Reply-To: MIME-Version: 1.0 References: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: scripting question 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, 04 Oct 2006 00:36:30 -0000 On 10/3/06, Ivan Levchenko wrote: > > Remove the word root from the crontab entry. The user should be > specified only in the system crontab. thanks ivan, but the solution i made was i put in the /usr/local/etc/periodic/daily directory, it is now working :D On 10/3/06, jan gestre wrote: > > i made a script and put on root's crontab, however it's not doing or > showing > > the output that is forwarded to my email address correctly therefore i'm > not > > sure if it is working or not. below is what the script look like: > > > > #---------------- > > # cvsrun - Weekly CVSup Run > > > > echo "Subject: `hostname` weekly cvsup run" > > /usr/local/bin/cvsup -g -L 2 /root/ports-supfile > > echo "" > > /usr/local/bin/portmanager -s | grep OLD > > echo "" > > echo "cvsrun done." > > > > #---------------- > > > > i would like the output of this command > > > > /usr/local/bin/portmanager -s | grep OLD > > > > to show in my mail where i forwarded it. below is the cronjob. > > > > 30 8 * * * root /usr/local/bin/cvsrun | mail -s "Daily cvsup run and > > portmanager" user1 > > > > can someone help me to correct this script, to show the output that i > want. > > > > TIA > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" > > > > > -- > Best Regards, > > Ivan Levchenko > levchenko.i@gmail.com >