gnokii-users
[Top][All Lists]
Advanced

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

Re: cgi problem


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

this is the debug.txt

so do i  have to give the permission to apache for opening /dev/ttyS0 ?

 

On July 18, 2011 at 11:33 AM Daniele Forsi <address@hidden> wrote:

> 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
>
> _______________________________________________
> gnokii-users mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/gnokii-users

Attachment: debug.zip
Description: Zip archive


reply via email to

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