De ce urmatorul script perl nu se vrea rulat din browser ci numai de la
consola?

(comanda system("convert ......) nu se executa atunci cand apelez scriptul
din browser)
Apache_ul ruleaza sub user_ul postgres iar scriptul are drept de scriere pe
acest user (755)

#!/usr/bin/perl -w

use CGI;
use Pg;
use Image::Size;

system("convert -geometry \"100x100\" /home/postgres/httpd/html/poze/7.jpg
/home/postgres/httpd/html/poze/plaja_red.jpg");

&dublaj;

###################################################################
sub dublaj {

print <<EOT;
Content-type: text/html

<html>

<head>
<title>Lipsa poza </title>
</head>

<body bgcolor="#FFFFFF">
<h1>Dublaj!</h1>
<h1>AuthorId $authorid deja existenta!</h1>
[ <a href='/form.html'>Back To form</a> ]
</body>
</html>
EOT
}





--- 
Detalii despre listele noastre de mail: http://www.lug.ro/


Raspunde prin e-mail lui