Looks like your shell is processing the html as a command, try
enclosing it in single quotes (') instead of double quotes, like this:<br>
<br>
system("$bb $bbhost 'status ${bbhostname}.ups $color $now ${msg}'");<br>
<br>
Thanks,<br>
Larry Barber<br>
<br><div><span class="gmail_quote">On 3/1/06, <b class="gmail_sendername">Taylor, Robert</b> <<a href="mailto:Robert.Taylor@hendrickauto.com">Robert.Taylor@hendrickauto.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
All,<br><br>This may be slightly off topic, but I figured that there is someone here<br>that can help.  Over the past weekend I wrote my first Perl script to<br>replace a number of aging shell scripts that I had.  What I have done is
<br>written Perl scripts to query Liebert UPS systems, Netbotz environment<br>monitors and Juniper SSL VPN appliances.  Needless to say I am now a<br>believer in how much faster Perl is than shell.  My scripts dropped from
<br>about almost two minutes to run to 8 seconds.<br><br>I can see all of the output when I print to screen so I know that it is<br>polling everything okay.  The problem that I am having is getting Perl<br>to send this data to Hobbit.  It is just a formatting issue as I can
<br>have it send plain text fine, but I am trying to send HTML to create<br>nice looking status pages.  I have looked at previous scripts, but they<br>all use the BigBrother.pm module and I would like to get this working<br>
without that.  I am by no means a programmer but this problem is going<br>to bother me until I can get it working.<br><br>Perhaps someone could provide just a bit of Perl guidance?  The portion<br>of the code that I think it is getting hung up on is the colons in the
<br>HTML, but I am not sure.<br><br>sub sendupdates {<br><br>$msg = <<EOM;<br><html><body><center><br><!-- Created with Version 3 of the Liebert Test Script--><br><table border=\"0\" align=\"center\" id=\"table1\"
<br> style=\"height: 197px; width: 649px;\"><br>  <tbody><br>    <tr><br>      <th align=\"center\"><br>      <hr width=\"100%\"></th><br>    </tr><br><br>
< snip other HTML ><br><br></center><br></body><br></html><br><br>EOM<br><br>my $now = localtime($^T) . "\n";<br><br>if ($debug eq "yes"){<br>        print "------------------- Time Stamp --------------------\n";
<br>        print "Time Stamp: $now\n";<br>        print "------------------- HTML Output -------------------\n";<br>        print $msg;<br>}<br><br><br>system("$bb $bbhost \"status ${bbhostname}.ups $color $now ${msg}\"");
<br><br><br>}<br><br><br>The error messages that our output to the screen give the following:<br><br>bb: incorrect number of arguments<br>Format: <IP-ADDR> <DATA><br>sh: line 5: width:: command not found<br>sh: line 13: >
<br><br>then there are also a lot of the following messages:<br><br>sh: line 14: > </div><br>      <table id=table2 style=width:: No such file or directory<br>sh: line 14: height:: command not found<br>sh: line 17: >
<br>        <tbody><br>          <tr><br>            <th width=267style=font-weight:: command not found<br>sh: line 17: text-align:: command not found<br>sh: line 18: >Hostname:</th><br><br><br>Thanks in advance for any help.
<br><br>Robert Taylor<br><br><br>To unsubscribe from the hobbit list, send an e-mail to<br><a href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</a><br><br><br></blockquote></div><br>