Problem with bbgen pre-built reports
Hi Henrik
I'm trying to use Hobbit 4.1.2 in report-generation mode, as I was doing previously with bbgen 2.x / 3.x, but I'm having a strange problem with start & end dates...
Here's my command line :
START=date +%s --date="01 sep 2005 00:00:00"
END=date +%s --date="30 sep 2005 23:59:59"
/hobbit/server/bin/bbcmd --env=/hobbit/server/etc/hobbitserver.cfg
bbgen --reportopts==$START:$END:1:all
--subpagecolumns=2
--pages-last
--pagetext-headings
/hobbit/server/www/reports-test/
The report is built from august, 9 to october, 25. Is there something I'm not doing the right way ?
Thanks in advance.
--
Frédéric Mangeant
Steria EDC Sophia-Antipolis
On Tue, Oct 25, 2005 at 05:57:04PM +0200, Frédéric Mangeant wrote:
I'm trying to use Hobbit 4.1.2 in report-generation mode, as I was doing previously with bbgen 2.x / 3.x
Should work exactly the same.
but I'm having a strange problem with start & end dates...
START=
date +%s --date="01 sep 2005 00:00:00"END=date +%s --date="30 sep 2005 23:59:59"/hobbit/server/bin/bbcmd --env=/hobbit/server/etc/hobbitserver.cfg
bbgen --reportopts==$START:$END:1:all
--subpagecolumns=2
--pages-last
--pagetext-headings
/hobbit/server/www/reports-test/The report is built from august, 9 to october, 25.
This one was tricky ... I cut-and-pasted your commands and had the same error, which puzzled me for a bit.
If you look closely at the "--reportopts", you'll notice a double equal-sign. That's what is causing the problem.
There's actually a script included with Hobbit - hobbitreports.sh - which generates daily, weekly and monthly availability reports. Perhaps you could use that as a template ?
Regards, Henrik
Henrik Stoerner a écrit :
START=
date +%s --date="01 sep 2005 00:00:00"END=date +%s --date="30 sep 2005 23:59:59"/hobbit/server/bin/bbcmd --env=/hobbit/server/etc/hobbitserver.cfg
bbgen --reportopts==$START:$END:1:all
--subpagecolumns=2
--pages-last
--pagetext-headings
/hobbit/server/www/reports-test/The report is built from august, 9 to october, 25.
This one was tricky ... I cut-and-pasted your commands and had the same error, which puzzled me for a bit.
If you look closely at the "--reportopts", you'll notice a double equal-sign. That's what is causing the problem.
Sorry for this one... It works fine with a single equal-sign.
There's actually a script included with Hobbit - hobbitreports.sh - which generates daily, weekly and monthly availability reports. Perhaps you could use that as a template ?
Great, I won't have to rewrite my old bbgen scripts :-)
Last question : does hobbitreports.sh work on Unix systems without GNU date ? If not, you could add GNU coreutils to the prerequisites (it's available for AIX, Solaris, HP-UX, etc.), it provides this command.
Thanks again.
Regards,
--
Frédéric Mangeant
Steria EDC Sophia-Antipolis
participants (2)
-
frederic.mangeant@steria.com
-
henrik@hswn.dk