gnokii-users
[Top][All Lists]
Advanced

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

Re: cgi problem


From: Daniele Forsi
Subject: Re: cgi problem
Date: Mon, 18 Jul 2011 11:33:32 +0200

2011/7/18 Mosca Federico:

> but if i try to use my cgi, it doesn't do nothing and i haven't any kind of
> debug

I guess you can redirect stdout and stderr, eg.:
exec ("echo $sms_text|gnokii --sendsms +39xxxxx 1>>/tmp/debug.txt 2>&1");

note that you usually don't run gnokii as root but you just give your
user the right permissions for the device, in your case it's the user
under which the webserver runs

for continuous operation you should consider using smsd
-- 
Daniele Forsi



reply via email to

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