"CM" == Christian Magnusson wrote: CM> On Mon, 2005-04-11 at 21:59, Serg Oskin wrote: >> In Mon, 11/04/2005 21:04 +0200, Christian Magnusson wrote: >> >> > I was thinking some more about simultaneous reading... How about adding >> > a feature like "echo 10 > simultaneous/temperature_frequency" which >> > automatically send a calculation restart after 10 seconds. That would >> > result into always fresh temperature values even if user doesn't >> > announce that he will read right now. >> >> Why not to do it by means of crond or the user's application?..
CM> That's my point... It shouldn't be needed to have any second application CM> running to update the values frequently. After somebody will want to receive simultaneous/temperature_starttime and simultaneous/temperature_stoptime so gradually in OWFS there will be the crond... :) I do not see sense to complicate OWFS by duplicating functions of other programs which are available in any Unix. BTW, on shell it is done within the limits of one program: ------------------------8<----------------------------- #!/bin/sh mycrond() { while : ; do if [ -f $OneWire/simultaneous/temperature ]; then echo 1 >$OneWire/simultaneous/temperature fi sleep 10 done } mycrond & ... ... ------------------------8<------------------------------ -- Serg (http://oskin.ru/) ~ ~ :q! ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers