[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] "Main View" Help Needed
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] "Main View" Help Needed
- From: Richard Finegold <goldfndr (at) gmail.com>
- Date: Wed, 18 Nov 2009 21:20:16 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=dYx5UIqWTekyzlz47nrb7OMx/ArZRZZwKnqm8Ia//Fw=; b=sdhLxSqson6leL4D2pH9oJd4cxFRAVpn5XrcLAHYqulqDGmkeFl+Gd783ZnOfac6nL k8g3H6Gtz6m53g/06mE3HSAGvTxFN2j2wN1XDQzYoV5NLW+sSK1rjOlZ+cLWl133Uhp2 jJYaKz0gtOpvvrJHlFBydmYJ1yNepYSnOIck8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=lgGJWGcKjq0LXxI6GoSJaIlxfzxypcV93ialMuGTzaoNy0Neiy9JlZTwGx3XRcQjBH b+lqjZvsXdS84TMAtQHTmgyklMd0Yjk6vAyfJvzFeSLJM7pk2wbvrfC5T7TzYWVf+I9W I5yNPzJAXJCzSwszu0hn6pLCR87bVHUeeUcKw=
- References: <BAY133-W59601B1784CEA53E45D52B4A80 (at) phx.gbl> <d6b65a270911132305p1f2dedfdl8c61af1bbe0198cb (at) mail.gmail.com> <BAY133-W17833BDFAFF71767453B5FB4A50 (at) phx.gbl>
On Mon, Nov 16, 2009 at 13:33, <wiskbroom (at) hotmail.com> wrote:
> Great idea, thank you. Some questions, aside from learning to to generate another pageset, say bb3.html, would all of the other environ variables be the same? Where does bbgen actually create bb.html, and should I just insert additional code in that file to create a new file?
Well... the environ variables will require minor tweaks; see below.
The directive to bbgen is in hobbitlaunch.cfg. My settings look like
this:
[bbdisplay]
ENVFILE /home/hobbit/server/etc/hobbitserver.cfg
NEEDS hobbitd
GROUP generators
CMD bbgen $BBGENOPTS --report
LOGFILE $BBSERVERLOGS/bb-display.log
INTERVAL 1m
[bbdisplaycity]
ENVFILE /home/hobbit/server/etc/hobbitserver.cfg
NEEDS hobbitd
GROUP generators
CMD /home/hobbit/server/ext/city-display.sh
LOGFILE $BBSERVERLOGS/city-display.log
INTERVAL 2m
(the city pages aren't used as often, so they aren't generated as often.)
My city-display.sh is similar to the bbgen call, but the BBGENOPTS
from hobbitserver.cfg isn't what I wanted.
#!/bin/sh
BBWEB="/hobbit/city"
$BBHOME/bin/bbgen --pageset=city --subpagecolumns=3 --pagetitle-links
--pagetext-headings --maxrows=10 --nopropred=msgs
--nopropyellow=msgs,flexlm $BBHOME/www/city/
Whether you want a separate log file (if any) for each pageset vs a
combined log file for all bbgen runs might dictate whether you have
separate hobbitlaunch.cfg entries.