ok, that works thanks (as does the server side wget).<br><br><div class="gmail_quote">2008/6/23 Kieren Diment &lt;<a href="mailto:diment@gmail.com">diment@gmail.com</a>&gt;:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On 23 Jun 2008, at 21:45, Martin Ellison wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sorry, bit of a newbie question: is there any way that I can run an action<br>
but capture the results (server-side) to a file? Doing so client side is<br>
easy (eg wget) but I want to keep the page text on the server and to<br>
automate the page generation/save.<br>
<br>
</blockquote>
<br></div>
>From Catalyst::View::TT:<br>
<br>
 &nbsp; &nbsp; render($c, $template, \%args)<br>
<br>
Renders the given template and returns output, or a Template::Exception &nbsp; &nbsp; &nbsp; object upon error. &nbsp; &nbsp; ...<br>
<br>
so:<br>
<br>
my $var = $c-&gt;render($template, \%args);<br>
my $file = &#39;/what/ever.html&#39;;<br>
print $FH, &quot;&gt;&quot;, $file;<div><div></div><div class="Wj3C7c"><br>
<br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk" target="_blank">Catalyst@lists.scsys.co.uk</a><br>
Listinfo: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst</a><br>
Searchable archive: <a href="http://www.mail-archive.com/catalyst@lists.scsys.co.uk/" target="_blank">http://www.mail-archive.com/catalyst@lists.scsys.co.uk/</a><br>
Dev site: <a href="http://dev.catalyst.perl.org/" target="_blank">http://dev.catalyst.perl.org/</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Regards,<br>Martin<br>(<a href="mailto:m.e@acm.org">m.e@acm.org</a>)<br>IT: <a href="http://methodsupport.com">http://methodsupport.com</a> Personal: <a href="http://thereisnoend.org">http://thereisnoend.org</a>