Re: [Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread leonard . a . jaffe
Fayland Lam [EMAIL PROTECTED] wrote: Lee Standen wrote: It's a subroutine, right? Tried a return?such as: $c-res-redirect('http://www.yahoo.com'); return undef; Indeed I want to run the 'while' loop in backend. 'return' would not run the loop I think. Why do you want to

Re: [Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread Jay K
Hi, I think the idea is to start a long-running process based on a web- based trigger and allow the user to proceed on to do other things. In other systems a fork() would probably be in order. I'm curious also - is there a Catalyst specific way of doing something like that...? and if not,

Re: [Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread Christopher H. Laco
Carl Franks wrote: On 26/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Fayland Lam [EMAIL PROTECTED] wrote: Lee Standen wrote: It's a subroutine, right? Tried a return?such as: $c-res-redirect('http://www.yahoo.com'); return undef; Indeed I want to run the

Re: [Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread Carl Franks
On 26/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Fayland Lam [EMAIL PROTECTED] wrote: Lee Standen wrote: It's a subroutine, right? Tried a return?such as: $c-res-redirect('http://www.yahoo.com'); return undef; Indeed I want to run the 'while' loop in backend. 'return'

Re: [Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread Matt S Trout
Fayland Lam wrote: Lee Standen wrote: It's a subroutine, right? Tried a return?such as: $c-res-redirect('http://www.yahoo.com'); return undef; Indeed I want to run the 'while' loop in backend. 'return' would not run the loop I think. $c-res-redirect(...); $c-finalize_headers; while

[Catalyst] Missing Helper.pm

2006-10-26 Thread catalyst . 20 . chsg
I've done a couple of Catalyst installs in the last few days, one on OS X and one on Ubuntu Linux, both using the cat-install script. The installs seemed to go fine, but when I run catalyst.pl MyApp I get this error: Can't locate Catalyst/Helper.pm in @INC (@INC contains: /etc/perl

Re: [Catalyst] Missing Helper.pm

2006-10-26 Thread Jesse Sheidlower
On Thu, Oct 26, 2006 at 11:55:37AM -0400, [EMAIL PROTECTED] wrote: I've done a couple of Catalyst installs in the last few days, one on OS X and one on Ubuntu Linux, both using the cat-install script. The installs seemed to go fine, but when I run catalyst.pl MyApp I get this error: Can't

Re: [Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread Mark Ethan Trostler
Ajax. Mark Christopher H. Laco wrote: Carl Franks wrote: On 26/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Fayland Lam [EMAIL PROTECTED] wrote: Lee Standen wrote: It's a subroutine, right? Tried a return?such as: $c-res-redirect('http://www.yahoo.com'); return undef;

Re: [Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread Wade . Stuart
] Carl Franks [EMAIL PROTECTED] wrote on 10/26/2006 10:15:18 AM: On 26/10/06, [EMAIL PROTECTED] [EMAIL PROTECTED] com wrote: Fayland Lam [EMAIL PROTECTED] wrote: Lee Standen wrote: It's a subroutine, right? Tried a return?such as:

[Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread A. Pagaltzis
* Mark Ethan Trostler [EMAIL PROTECTED] [2006-10-26 19:00]: Christopher H. Laco wrote: Personally, rather than fork, I'd suggest some sort of message/request queue. Ajax. Some people, when confronted with a problem, think “I know, I’ll use Javascript.” Now they have two problems. (With

[Catalyst] Failing tests on Centos 4.4

2006-10-26 Thread Matt Patterson
Hello, I'm trying to install Catalyst,. I've started with Catalyst-Runtime and (as far as I know) I have all the dependencies installed. However, three tests in t/live_engine_response_cookies are failing. I've attached the output from that chunk.

Re: [Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread Rodney Broom
How about system($cmd ) ? If the job can handle it, I tend to agree with the job-queue aproach. This can provide other forward gains like being able to distribute the work over multiple systems. --- Rodney Broom ___ List:

Re: [Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread Rodney Broom
From: Jonathan Rockway [EMAIL PROTECTED] system($cmd ); I 'system(nohup ... /tmp/file )' Please, no scalar system() calls in a web application. Thanks. How come? --- Rodney Broom ___ List: Catalyst@lists.rawmode.org Listinfo:

Re: [Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread Jonathan Rockway
How come? I recommend reading perldoc perlsec. The one-argument form of Csystem invokes the system's shell to process the command (usually), leading to a number of possible security problems. Basically you're entering into the fun game of trying to escape all possible bad inputs, which is

Re: [Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread Rodney Broom
Ah, injection. Yes, you're completely right. My meaning in $cmd was to say, whatever your command is Personally, I tend to only only interpret input, as apposed to using it directly. ie; $cmd_to_run = $allowed_commands{$input_cmd_menu_item} ...but now I'm OT. ;) --- Rodney Broom -

[Catalyst] Re: How to redirect before some code excute

2006-10-26 Thread Fayland Lam
Matt S Trout wrote: Fayland Lam wrote: Lee Standen wrote: It's a subroutine, right? Tried a return?such as: $c-res-redirect('http://www.yahoo.com'); return undef; Indeed I want to run the 'while' loop in backend. 'return' would not run the loop I think. $c-res-redirect(...);

Re: [Catalyst] Failing tests on Centos 4.4

2006-10-26 Thread hkclark
On 10/26/06, Matt Patterson [EMAIL PROTECTED] wrote: Hello, I'm trying to install Catalyst,. I've started with Catalyst-Runtime and (as far as I know) I have all the dependencies installed. However, three tests in t/live_engine_response_cookies are failing. I've attached the output from that