Hi Jon,<br><br>   I haven&#39;t tried this myself, but check out the Catalyst tutorial.  It looks like it shows exactly what you need:<br><br>   <a href="http://search.cpan.org/~zarquon/Catalyst-Manual-5.8005/lib/Catalyst/Manual/Tutorial/08_Testing.pod">http://search.cpan.org/~zarquon/Catalyst-Manual-5.8005/lib/Catalyst/Manual/Tutorial/08_Testing.pod</a><br>
<br>-Tai<br><br><div class="gmail_quote">On Tue, Nov 2, 2010 at 9:08 PM, Jonathon Soong <span dir="ltr">&lt;<a href="mailto:jon@investmentscience.com.au">jon@investmentscience.com.au</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi guys<br>
<br>
I am new to Catalyst and have a question :)<br>
<br>
I&#39;d like the ability to run some of the code of my website from the<br>
command line ( a cron job ).<br>
<br>
Usually this would be achieved by a person logging into the website and<br>
clicking on a particular button which hits a controller.<br>
<br>
I saw that there is a <a href="http://myapp_test.pl" target="_blank">myapp_test.pl</a> that can call a particular address,<br>
so i tried this:<br>
<br>
This works fine:<br>
$&gt;  perl script/<a href="http://myapp_test.pl" target="_blank">myapp_test.pl</a> /login<br>
<br>
I can see the HTML get printed out on my screen.<br>
<br>
But when I try to get to a deeper URL it does not work:<br>
 perl script/<a href="http://isrms_test.pl" target="_blank">isrms_test.pl</a> /my/other/url<br>
<br>
I think this is because there is authentication on the site?<br>
<br>
Is this the way I should be going about trying to do this? Is there a<br>
better way to do this?<br>
<br>
Thanks<br>
<br>
Jon<br>
<br>
<br>
_______________________________________________<br>
List: <a href="mailto:Catalyst@lists.scsys.co.uk">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>
</blockquote></div><br>