[Catalyst] myapp_test.pl - running code from the command line

Tai Hsiao tai.hsiao at primacinema.com
Wed Nov 3 04:52:46 GMT 2010

Hi Jon,

   I haven't tried this myself, but check out the Catalyst tutorial.  It
looks like it shows exactly what you need:



On Tue, Nov 2, 2010 at 9:08 PM, Jonathon Soong <jon at investmentscience.com.au
> wrote:

> Hi guys
> I am new to Catalyst and have a question :)
> I'd like the ability to run some of the code of my website from the
> command line ( a cron job ).
> Usually this would be achieved by a person logging into the website and
> clicking on a particular button which hits a controller.
> I saw that there is a myapp_test.pl that can call a particular address,
> so i tried this:
> This works fine:
> $>  perl script/myapp_test.pl /login
> I can see the HTML get printed out on my screen.
> But when I try to get to a deeper URL it does not work:
>  perl script/isrms_test.pl /my/other/url
> I think this is because there is authentication on the site?
> Is this the way I should be going about trying to do this? Is there a
> better way to do this?
> Thanks
> Jon
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20101102/117d5=

More information about the Catalyst mailing list