[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Availability Report static
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Availability Report static
- From: henrik (at) hswn.dk (Henrik Stoerner)
- Date: Thu, 2 Jun 2005 17:37:09 +0200
- References: <e73320da050602072013d533ff@mail.gmail.com>
- User-agent: Mutt/1.5.6+20040907i
On Thu, Jun 02, 2005 at 11:20:00AM -0300, mario andre wrote:
> Hi friends,
>
> When I try to generate the Availability Report static using my script
>
> year=`date +%Y`
> START=`date +%s --date="01 $month $year 00:00:00"`
> END=`date +%s --date="$day $month $year 23:59:59"`
> BBWEB="/sla/`date +%Y`/$month"
>
> BBHELPSKIN="/home/hobbit/server/www/help"
> BBNOTESSKIN="/home/hobbit/server/www/notes"
> /home/hobbit/server/bin/bbgen --reportopts=$START:$END:1:crit
> --subpagecolumns=2 /home/hobbit/server/www/sla/`date +%Y`/$month
>
>
> I got these errors:
>
> 2005-06-02 11:13:49 xgetenv: Cannot find value for variable BBREPGREEN
> 2005-06-02 11:13:49 xgetenv: Cannot find value for variable MACHINE
> 2005-06-02 11:13:49 Environment variable MACHINE not defined
> 2005-06-02 11:13:49 Aborting
You need to have the Hobbit environment variables defined. Run your
script via the "bbcmd" tool:
bbcmd /usr/local/bin/myreport.sh
and that should provide all of the environment variables from
hobbitserver.cfg.
Henrik