Skip to Content.
Sympa Menu

postfilter - Re: [Postfilter] Captcha sound hiba

postfilter AT lists.kfki.hu

Subject: Postfilter mailing list

List archive

Re: [Postfilter] Captcha sound hiba


Chronological Thread 
  • From: Kadlecsik Jozsi <kadlec AT sunserv.kfki.hu>
  • To: Balázs Tibor <covek AT covek.hu>
  • Cc: postfilter AT sunserv.kfki.hu
  • Subject: Re: [Postfilter] Captcha sound hiba
  • Date: Sun, 9 Apr 2006 17:13:32 +0200 (MEST)
  • List-archive: <http://sunserv.kfki.hu/pipermail/postfilter>
  • List-id: Postfilter mailing list <postfilter.lists.kfki.hu>

On Sun, 9 Apr 2006, [ISO-8859-1] Balázs Tibor wrote:

Talan megvan: a festival-nak kell a PATH kornyezeti valtozo. Probald meg
igy:

my @cmd = split(/\s+/, $cmd);
$ENV{PATH}='/foo';

Kezdem nem érteni.

Apr 9 14:11:01 localhost captcha.cgi[14507]: warning: Cannot open
output file /usr/local/postfilter/tmp/14507.out: No such file or
directory
Apr 9 14:11:01 localhost captcha.cgi[14507]: warning: Cannot unlink
output file /usr/local/postfilter/tmp/14507.out

ennyi volt a logban.

Elotte semmi?

vim /usr/local/postfilter/sbin/captcha.cgi.pl fájlban:

my $cmd = $config->{captcha}->{speech}->{text2wave};
$cmd =~ s/\$input/$input/;
$cmd =~ s/\$output/$output/;
my @cmd = split(/\s+/, $cmd);
$ENV{PATH}='/usr/bin/text2wave';
push(@cmd, qw(> /tmp/captcha.debug 2>&1));
system(@cmd) == 0
or do { warning("Cannot execute $cmd: $?"); exit };
unlink($input)
or do { warning("Cannot unlink input file $input"); exit };

Jó ez így?

Jo. A PATH kornyezeti valtozo tartalma erdektelen, csak legyen definialva.

Udvozlettel,
Jozsi
--
E-mail :
kadlec AT sunserv.kfki.hu,

kadlec AT blackhole.kfki.hu
PGP key: http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address: KFKI Research Institute for Particle and Nuclear Physics
H-1525 Budapest 114, POB. 49, Hungary


Archive powered by MHonArc 2.6.19+.

Top of Page