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 12:11:43 +0200 (CEST)

thks David it works now

 

On July 18, 2011 at 11:59 AM David Masterson <address@hidden> wrote:

> Yes, something like that. On my server, the permissions for the gnokii
> device reset on reboot, to to ensure it's never down for very long, I run
> the following cron job:
>
> ###
> ### Make sure SMS works - allow users to write to the phone device
> ###
> */15 * * * * root chmod a+rw /dev/ttyACM0
>
> Obviously, you'll use /dev/ttyS0.
>
> Dave
>
>
> On 18 July 2011 10:45, Mosca Federico <address@hidden> wrote:
>
> > **
> >
> > 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
> >
> > _______________________________________________
> > gnokii-users mailing list
> > address@hidden
> > https://lists.nongnu.org/mailman/listinfo/gnokii-users
> >
> >
>
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> * Picasa:      http://picasaweb.google.com/david.masterson/
> * DeviantArt: http://ravydavygravy.deviantart.com/
> * Caving:      http://www.ucdcaving.com/
> * LinkedIn:    http://www.linkedin.com/in/davema
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

reply via email to

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