Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Aug 2003 10:46:50 -0700
From:      Joshua Oreman <oremanj@get-linux.org>
To:        Charles Howse <chowse@charter.net>
Cc:        questions@freebsd.org
Subject:   Re: Customize Daily Run Report
Message-ID:  <20030820174650.GA23284@webserver>
In-Reply-To: <002e01c36713$f11dd6d0$04fea8c0@moe>
References:  <002e01c36713$f11dd6d0$04fea8c0@moe>

next in thread | previous in thread | raw e-mail | index | archive | help
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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030820174650.GA23284>