From owner-freebsd-questions@FreeBSD.ORG Wed Aug 20 10:46:52 2003 Return-Path: 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 DE4BF16A4BF for ; Wed, 20 Aug 2003 10:46:52 -0700 (PDT) Received: from webserver.get-linux.org (adsl-64-161-78-226.dsl.lsan03.pacbell.net [64.161.78.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 25CC243FCB for ; Wed, 20 Aug 2003 10:46:52 -0700 (PDT) (envelope-from oremanj@webserver.get-linux.org) Received: (qmail 25328 invoked by uid 1000); 20 Aug 2003 17:46:50 -0000 Date: Wed, 20 Aug 2003 10:46:50 -0700 From: Joshua Oreman To: Charles Howse Message-ID: <20030820174650.GA23284@webserver> References: <002e01c36713$f11dd6d0$04fea8c0@moe> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002e01c36713$f11dd6d0$04fea8c0@moe> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org Subject: Re: Customize Daily Run Report X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Aug 2003 17:46:53 -0000 On Wed, Aug 20, 2003 at 07:09:43AM -0500 or thereabouts, Charles Howse wrote: > Hi, > I have the following in /usr/local/etc/periodic/daily/100.cvsup > > #!/usr/local/bin/bash > /usr/local/bin/cvsup -g -L 2 /etc/cvsupfile > > When I get my daily run report, the output of the above script is > appended to the report without a blank line or (what I would call) a > header line. > > Would it be acceptable to modify my script as follows: > > #!/usr/local/bin/bash > Echo >> which.file > Echo "Output of /usr/local/etc/periodic/daily/100.cvsup:" >> which.file > /usr/local/bin/cvsup -g -L 2 /etc/cvsupfile > > Where 'which.file' is the daily run report? > This is a littly picky, I know. To your script, the daily run report is a file called "/dev/fd/1" :-) So just: echo echo "Output of CVSup:" /usr/local/bin/cvsup -g -L 2 /etc/cvsupfile -- Josh > > > Thanks, > Charles > > > _______________________________________________ > 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"