If not and you have a single web2py installation you can use a named pipe http://stackoverflow.com/questions/1430446/create-a-temporary-fifo-named-pipe-in-python
has pros and cons. data can be lost or corrupted if the reading/ writing app crashes. I would use the database because of transcaction safety. Massimo On Sep 21, 3:21 pm, Álvaro J. Iradier <[email protected]> wrote: > Hi, > > I've setup a background worker thread using cron @reboot. The > background worker is polling some serial sensors all the time (there's > a loop in class reading the sensor values). On some moment, the values > are recorded and an alarm bit is set. > > Now, what I need is a way to share this information with a web request > without writing it to the database. I've tried so far using class > variables, and cache.ram, but none of them work. I think the request > is being processed in a clean environment, am I right? > > So, what would be a good way of passingsome information to the request > thread from the background worker class? > > Thanks very much. > > Álvaro Iradier.

