<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";
color:#000099;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal;
font-family:Tahoma;
color:teal;
font-weight:bold;
font-style:normal;
text-decoration:none none;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:Tahoma;
color:teal;
font-weight:bold;
font-style:normal;
text-decoration:none none;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor=white lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'>Sorry…I
was thinking about Big Brother clients.<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'><o:p> </o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'>For
Hobbit, you should call your script from “server/etc/</span></font></b> <b><font
size=2 color=teal face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:teal;font-weight:bold'>hobbitlaunch.cfg”.<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'><o:p> </o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'>I have
one like this:<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'><o:p> </o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'>[lvm]<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'>
ENVFILE /home/hobbit/server/etc/hobbitserver.cfg<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'>
NEEDS hobbitd<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'>
CMD $BBHOME/ext/bb-lvm.sh<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'>
LOGFILE $BBSERVERLOGS/bb-lvm.log<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'>
INTERVAL 15m<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'><o:p> </o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'><o:p> </o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'>Jim
Smith<o:p></o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'><o:p> </o:p></span></font></b></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'><o:p> </o:p></span></font></b></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> Jon Boede [mailto:jon@shadowsoft.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, October 06, 2008
11:18 AM<br>
<b><span style='font-weight:bold'>To:</span></b> hobbit@hswn.dk<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [hobbit] BB
environment variables</span></font><font color=black><span style='color:windowtext'><o:p></o:p></span></font></p>
</div>
<p class=MsoNormal><font size=3 color="#000099" face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=3 color="#000099" face="Times New Roman"><span
style='font-size:12.0pt'>I don't have a bbdef.sh anywhere under my hobbit
~/server directory... :-(<br>
<br>
Smith, Jim wrote: <o:p></o:p></span></font></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'><!--[if gte mso 9]><xml>
<u1:shapedefaults u2:ext="edit" spidmax="1026"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
<u3:shapelayout u4:ext="edit">
<u3:idmap u4:ext="edit" data="1"/>
</u3:shapelayout>
</xml><![endif]-->Execute this line at the beginning of your script:<u5:p></u5:p></span></font></b><o:p></o:p></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'><u5:p> </u5:p></span></font></b><o:p></o:p></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'>.
$BBHOME/etc/bbdef.sh<u5:p></u5:p></span></font></b><o:p></o:p></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'><u5:p> </u5:p></span></font></b><o:p></o:p></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'>Make
sure you have the period<space> at the beginning.<u5:p></u5:p></span></font></b><o:p></o:p></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'><u5:p> </u5:p></span></font></b><o:p></o:p></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'>Jim
Smith<u5:p></u5:p></span></font></b><o:p></o:p></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'>SVHS<u5:p></u5:p></span></font></b><o:p></o:p></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'><u5:p> </u5:p></span></font></b><o:p></o:p></p>
<p class=MsoNormal><b><font size=2 color=teal face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:teal;font-weight:bold'><u5:p> </u5:p></span></font></b><o:p></o:p></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
color=black face="Times New Roman"><span style='font-size:12.0pt;color:windowtext'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 color=black face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;color:windowtext;font-weight:bold'>From:</span></font></b><font
size=2 color=black face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma;
color:windowtext'> Jon Boede [<a href="mailto:jon@shadowsoft.com">mailto:jon@shadowsoft.com</a>]
<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, October 06, 2008
10:57 AM<br>
<b><span style='font-weight:bold'>To:</span></b> <a href="mailto:hobbit@hswn.dk">hobbit@hswn.dk</a><br>
<b><span style='font-weight:bold'>Subject:</span></b> [hobbit] BB environment
variables</span></font><o:p></o:p></p>
</div>
<u5:p></u5:p>
<p class=MsoNormal><font size=3 color="#000099" face="Times New Roman"><span
style='font-size:12.0pt'><u5:p> </u5:p><o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 color="#000099" face=Arial><span
style='font-size:12.0pt;font-family:Arial'>What's a good way to get all the BB
environment variables set up when I want to use them in a script that's not
launched from hobbitd?<br>
<br>
For example, if I have a script that receives an email and reports a status
because of it? I know that I could hard-code everything, but that's
tacky. :-)<br>
<br>
Thanks,<br>
Jon</span></font><u5:p></u5:p><o:p></o:p></p>
<p class=MsoNormal><font size=3 color="#000099" face="Times New Roman"><span
style='font-size:12.0pt'><o:p> </o:p></span></font></p>
</div>
</body>
</html>