[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cgi problem

From: Mosca Federico
Subject: cgi problem
Date: Mon, 18 Jul 2011 09:18:11 +0200 (CEST)

hi, i've written the follow cgi
use CGI::Carp qw(fatalsToBrowser);
use CGI;


unless (fork) {
exec ("echo $sms_text|gnokii --sendsms +39xxxxx");

print "Content-type: text/html\n\n";
print "<HEAD>";
print "</HEAD>";
print "<BODY>";
print "$sms_text";
print "</BODY>";

in order to send an sms when in the browser i will write localhost/cgi-bin/myprogramm.cgi
but it doesn't work, i can't understand why...
gnokii works under root, i've also tried to put the absolut path /usr/bin/gnokii
can anyone help me?
reply via email to

[Prev in Thread] Current Thread [Next in Thread]