I'm trying to figure out why your process hangs -- oserver with
connect/disconnect from owperl processes. To be honest I hadn't tested this mode
of use, but there shouldn't be lingering resources on the server since owserver
makes no assumptions about clients (each request is a separate transaction). 

It is possible that there are problems at the network socket level.

I assume your script does the proper init (and finish, though it isn't really
needed). init sets up the connection, parses any options, and sets up a
_separate_ cache (owserver cache will persist).

Paul

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Congo
Lawrence
Sent: Monday, April 25, 2005 10:57 PM
To: [email protected]
Subject: Re: [Owfs-developers] System Log Question


Originally I had done exactly that, but I had problems with the perl 
script not exiting, so I would get a process hanging every 5 mins.  A 
real pain to kill them all.

Maybe I will try this again and let you know.  I always liked the server 
better, since I could also connect with the browser querying the 
owserver as well, without affecting the running script.

Thanks

Christian Magnusson wrote:

>One solution would be to start owserver in the background, and then
>connect to the local port instead. The speed would increase too since
>you would use the cached results in owserver too.
>
>owserver -u -p 3000
>
>And then connect to port 3000 in the perl-script.
>OW::init("3000")
>
>/Christian
>
>
>On Sun, 2005-04-24 at 08:04 -0400, Congo Lawrence wrote:
>  
>
>>Paul Alfille wrote: 
>>    
>>
>>>On Saturday 23 April 2005 05:16 pm, A C wrote:
>>>  
>>>      
>>>
>>>>Depending on which syslog you use, you should be able to filter it or
>>>>send it to /dev/null in you syslog config file.
>>>>
>>>>On 4/23/05, Congo Lawrence <[EMAIL PROTECTED]> wrote:
>>>>    
>>>>        
>>>>
>>>>>I use a perl script and perl bindings to read my devices every 5mins
>>>>>through a Cron entry, and load my rrd database and create rrd graphs.
>>>>>Works great.
>>>>>
>>>>>However in my syslog I get these every 5 mins:
>>>>>Apr 23 10:30:01 sol OWFS[18295]: Opened USB DS9490 adapter at 004/002.
>>>>>Apr 23 10:30:01 sol OWFS[18295]: Successful setup (reset=0) USB DS9490
>>>>>adapter at 004/002.
>>>>>
>>>>>Is there anyway to stop these messages, or direct them to another file?
>>>>>
>>>>>Thanks
>>>>>      
>>>>>          
>>>>>
>>>The original design for logging USB opening was for owfs or owhttpd that
start 
>>>once and stay open. I notice that most USB device hotplugging or startup 
>>>seems to be logged. OWFS copied that design.
>>>
>>>Intermittent perl scripts could generate a lot of reports. Should the script 
>>>access be handled differently in terms of logging?
>>>
>>>Paul
>>>
>>>
>>>-------------------------------------------------------
>>>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
>>>[email protected]
>>>https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>>
>>>  
>>>      
>>>
>>You are suggesting then, that one solution is to loop my 5 min actions
>>within my script then.  I can give that a try.  I am not sure that I
>>can filter out just those entries in the my syslog as was also
>>suggested, but I will try that as well.
>>
>>Thanks for the help.
>>    
>>



-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers


-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id5hix
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to