gnokii-users
[Top][All Lists]
Advanced

[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
#!/usr/bin/perl
use CGI::Carp qw(fatalsToBrowser);
use CGI;

$sms_text=testing123;

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

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?
thks
reply via email to

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