[Catalyst] Executing external applications from catalyst.

Jesper Krogh jesper at krogh.cc
Fri Oct 6 08:06:54 CEST 2006


> Hi Jesper,
>
>
> I found your entries about Catalyst and Open3 stepping on each others'
> toes. Do you know, is there a workaround or solution?

I ended up redirecting it to a file:

use File::Slurp;
my @cmd = ("signalp","-t",$self->{sigporganism},"$seqf");
my $cmd = join(" ", at cmd) . " 2> $seqerr > $seqout";
`$cmd`;

my $stdout = read_file($seqout);
my $stderr = read_file($seqerr);

I can get stdout on the fly, as open FILE,"command |"; Otherwise I found
that I neede the temporary files.

Jesper
-- 
Jesper Krogh




More information about the Catalyst mailing list