On Wed, Nov 3, 2010 at 5:08 AM, Jonathon Soong
j...@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
Hi
What kind of code do you actually want to run?
Perhaps it would be smarter to put that code into the model and then
run a perl script from cron that makes use of that model thus
bypassing the HTML authentication (which might be ok considering the
code is run from the system)
Yes I
From: Jonathon Soong j...@investmentscience.com.au
Yes I realise now it might make more sense in the Model, but at the moment
it is in the Controller (it is someone else's code, so more difficult for
me to refactor).
There are two questions I have then:
1. How do you call a Model's function
On Wed, Nov 3, 2010 at 7:40 AM, Jonathon Soong
j...@investmentscience.com.au wrote:
Hi
What kind of code do you actually want to run?
Perhaps it would be smarter to put that code into the model and then
run a perl script from cron that makes use of that model thus
bypassing the HTML
Jonathon == Jonathon Soong j...@investmentscience.com.au writes:
Jonathon Yes I realise now it might make more sense in the Model,
Jonathon but at the moment it is in the Controller (it is someone
Jonathon else's code, so more difficult for me to refactor).
That's barely an excuse,
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
Hi Jon,
I haven't tried this myself, but check out the Catalyst tutorial. It
looks like it shows exactly what you need:
http://search.cpan.org/~zarquon/Catalyst-Manual-5.8005/lib/Catalyst/Manual/Tutorial/08_Testing.pod
-Tai
On Tue, Nov 2, 2010 at 9:08 PM, Jonathon Soong