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
> 
> 
> _______________________________________________
> [EMAIL PROTECTED] mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to