<div dir="ltr"><div><div><div>John<br><br></div>Perhaps a variant of "wget -p" might be able to fetch the page and all image components.<br><br></div>But what you've tried should work.  In fact I have an old Hobbit server that I tested your script on, and got the results as you would want.  However, I had to join the lines together from "env" to the end, all as one long line, to get it to work.<br></div><div><br></div>J<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 28 April 2015 at 05:55, John Tullis <span dir="ltr"><<a href="mailto:john@executech.com" target="_blank">john@executech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr" style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>I'm looking for a way to send the contents of the the trends page to an external user with information from the trends page and don't want to give them internal access. <br>
</p>
<p><br>
</p>
<p>Anyone know a way to dump the page to a file?  <br>
</p>
<p><br>
</p>
<p>I've tried <a href="http://lists.xymon.com/oldarchive/2010/02/msg00188.html" target="_blank">this ​</a>so far with little success:<br>
</p>
<p><br>
</p>
<p></p>
<blockquote style="margin:0 0 0 40px;border:none;padding:0px">
<div>#!/bin/sh</div>
<div>. /usr/lib/hobbit/server/etc/hobbitcgi.cfg</div>
<div>HOST=$1<br>
</div>
<div>SERVICE=trends</div>
<div>env REQUEST_URI=/hobbit-cgi/bb-hostsvc.sh?HOST=${HOST}\&SERVICE=$SERVICE</div>
<div>SCRIPT_NAME=/hobbit-cgi/bb-hostsvc.sh</div>
<div>QUERY_STRING=HOST=${HOST}\&SERVICE=$SERVICE REQUEST_METHOD=GET</div>
<div>/usr/lib/hobbit/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS --debug</div>
</blockquote>
<p><br>
</p>
<p>Then I run sh test.sh server​.name<br>
</p>
<p><br>
</p>
<p>The result is:<br>
</p>
<p><br>
</p>
<div>Content-type: text/html</div>
<div><br>
</div>
<div><html><head><title>Invalid request</title></head></div>
<div><body>Invalid request</body></html></div>
<div><br>
It acts as though it didn't find a host name to query. <br>
</div>
<div><br>
</div>
<p>Any other suggestions would be very helpful!<br>
</p>
<p><br>
</p>
<p>Thanks, <span class="HOEnZb"><font color="#888888"><br>
</font></span></p><span class="HOEnZb"><font color="#888888">
<p><br>
</p>
<p><br>
</p>
<div>
<div><font face="Tahoma" size="2">
<p class="MsoNormal">John Tullis</p>
<p class="MsoNormal">     </p>
</font></div>
</div>
</font></span></div>

<br>_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
<br></blockquote></div><br></div>