From owner-freebsd-questions@FreeBSD.ORG Tue Oct 3 07:23:04 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 B0D1F16A40F for ; Tue, 3 Oct 2006 07:23:04 +0000 (UTC) (envelope-from levchenko.i@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15CEB43D46 for ; Tue, 3 Oct 2006 07:23:03 +0000 (GMT) (envelope-from levchenko.i@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so550937uge for ; Tue, 03 Oct 2006 00:23:03 -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:content-transfer-encoding:content-disposition:references; b=tZU03tFHwqVW85ow/DiJCnqDbtnp5XYrFgttxOSDEfRAeHeyzdunxH8cEpiE7hpx1x0rXrFhw2n7XGTLmgDtH80vOkemkLigHsj9VEsijDiObettuWfAywUXxxvN9SQEOHlWUSWLdwgrtB+UNPqlTGC32IjIPOwfJoQoKyAV1tc= Received: by 10.66.240.12 with SMTP id n12mr3427533ugh; Tue, 03 Oct 2006 00:23:02 -0700 (PDT) Received: by 10.66.232.6 with HTTP; Tue, 3 Oct 2006 00:23:02 -0700 (PDT) Message-ID: Date: Tue, 3 Oct 2006 10:23:02 +0300 From: "Ivan Levchenko" To: freebsd-questions@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: 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: Tue, 03 Oct 2006 07:23:04 -0000 (forgot to cc the list =)) Remove the word root from the crontab entry. The user should be specified only in the system crontab. 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 -- Best Regards, Ivan Levchenko levchenko.i@gmail.com