Sorry we didn't test the last one and there were Perl errors. I fixed
the post
I am attaching here the exact code that I tested.
Let me know if it works
-- Silvano
#!/usr/bin/perl
use strict;
use warnings;
use File::Find;
my $owfs_root = "/root/1wire";
my $owfs_flat = "/root/flat";
sub owfs_find_sensor {
sub owfs_wanted
{
if ($File::Find::name =~ /alarm/) {return;};
if ($File::Find::name =~ /bus/) {return;};
if ($File::Find::name =~ /cached/) {return;};
if ($File::Find::name =~ /structure/) {return;};
if ($_ =~ /^(10|1D|1F|20|22|23|26|28|29|30|36)/)
{
system ("ln -s $File::Find::name $owfs_flat");
}
}
eval {find(\&owfs_wanted, $owfs_root);};
}
print "Command to recreate the appropriate $owfs_flat directory\n\n";
system ("rm $owfs_flat/*\n");
owfs_find_sensor();
print "\n";
On 12/29/11 6:05 AM, Ákos Gábriel wrote:
> Hi,
>
> On the link below the last version doesn't even compile ({ and } dont' match).
>
> Regards,
> Akos
>
> 2011.12.22. dátummal, 0:22 időpontban Silvano Gai írta:
>
>> The English of the post was ambiguous and I have fixed it.
>>
>> http://ip6.com/projects/?p=80 DOES work with the 6-port hubs
>>
>> -- Silvano
>>
>>
>>
>> On 12/21/11 2:01 PM, Ákos Gábriel wrote:
>>> Hi,
>>>
>>> Sorry I missed the point that "these scripts do not work in the presence of
>>> a 6-port hub".
>>> Of course this is the case in my system :)
>>> … but then, what's the point with the "flattening" if there is no hub
>>> creating the hierarchy?
>>>
>>> Best,
>>> Akos
>>>
>>> 2011.12.12. dátummal, 21:35 időpontban Silvano Gai írta:
>>>
>>>> These scripts are fully functional, can you send me the output you get
>>>> when you run them?
>>>>
>>>> -- Silvano
>>>>
>>>> On 12/12/11 10:55 AM, Ákos Gábriel wrote:
>>>>> Hi
>>>>>
>>>>> Now I had some time to check the code you mentioned below. Most likely
>>>>> I'm too lame but they didn't work.
>>>>> Could you please extend them to a fully functional script?
>>>>>
>>>>> Thanks,
>>>>> Akos
>>>>>
>>>>> 2011.11.28. dátummal, 17:56 időpontban Silvano Gai írta:
>>>>>
>>>>>> You can use this for the moment
>>>>>> http://ip6.com/projects/?p=80
>>>>>>
>>>>>> and this
>>>>>> http://ip6.com/projects/?p=173
>>>>>> as a corollary
>>>>>>
>>>>>> -- Silvano
>>>>>>
>>>>>> On 11/27/11 11:19 PM, Ákos Gábriel wrote:
>>>>>>> Hi Paul,
>>>>>>>
>>>>>>> I missed last weeks' conversations and just want to check back on that.
>>>>>>> Is there any progress regarding /flat directory?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Akos
>>>>>>>
>>>>>>> 2011.09.15. dátummal, 23:50 időpontban Paul Alfille írta:
>>>>>>>
>>>>>>>> Design.
>>>>>>>>
>>>>>>>> The DS2482-800 is really 8 almost independent bus masters.
>>>>>>>>
>>>>>>>> The DS2409 has switching on/off of it's branches, and in general the
>>>>>>>> branches are not revealed without specific effort. The Dallas
>>>>>>>> application notes use the selective nature of the branches
>>>>>>>> inventively, and so that's the way OWFS implemented their use.
>>>>>>>>
>>>>>>>> /flat isn't too hard to do, however.
>>>>>>>>
>>>>>>>> Paul
>>>>>>>>
>>>>>>>> On Thu, Sep 15, 2011 at 4:51 PM, Mark Richards
>>>>>>>> <[email protected]> wrote:
>>>>>>>>> On 9/15/2011 16:24, ekgnkb3d wrote:
>>>>>>>>>
>>>>>>>>> Hi Mark
>>>>>>>>> Mark Richards-3 wrote:
>>>>>>>>>
>>>>>>>>> On 9/14/2011 08:49, ekgnkb3d wrote:
>>>>>>>>> My network doesn't do that. It would be nice. I think it has to do
>>>>>>>>> with the fact that there are DS2409 switches at the base of the
>>>>>>>>> network.
>>>>>>>>>
>>>>>>>>> OK, maybe that's a problem of the DS2409.
>>>>>>>>> I'm using 4x DS2482-100 so they are flatted in the root without any
>>>>>>>>> addition
>>>>>>>>> work...
>>>>>>>>> Achim
>>>>>>>>>
>>>>>>>>> Well, except beyond the "root" switch there are other DS2409's (3
>>>>>>>>> deep), and
>>>>>>>>> I do see the rest of the network.
>>>>>>>>>
>>>>>>>>> It would be helpful to know if this is by design, or a problem..
>>>>>>>>>
>>>>>>>>> Anyhow I got beyond this by scanning down all the branches using the
>>>>>>>>> python
>>>>>>>>> utility supplied with the owfs sources. Works like a charm.
>>>>>>>>>
>>>>>>>>> /m
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>>> Doing More with Less: The Next Generation Virtual Desktop
>>>>>>>>> What are the key obstacles that have prevented many mid-market
>>>>>>>>> businesses
>>>>>>>>> from deploying virtual desktops? How do next-generation virtual
>>>>>>>>> desktops
>>>>>>>>> provide companies an easier-to-deploy, easier-to-manage and more
>>>>>>>>> affordable
>>>>>>>>> virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
>>>>>>>>> _______________________________________________
>>>>>>>>> Owfs-developers mailing list
>>>>>>>>> [email protected]
>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>>>>>>>>
>>>>>>>>>
>>>>>>>> ------------------------------------------------------------------------------
>>>>>>>> Doing More with Less: The Next Generation Virtual Desktop
>>>>>>>> What are the key obstacles that have prevented many mid-market
>>>>>>>> businesses
>>>>>>>> from deploying virtual desktops? How do next-generation virtual
>>>>>>>> desktops
>>>>>>>> provide companies an easier-to-deploy, easier-to-manage and more
>>>>>>>> affordable
>>>>>>>> virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
>>>>>>>> _______________________________________________
>>>>>>>> Owfs-developers mailing list
>>>>>>>> [email protected]
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>>>>> ------------------------------------------------------------------------------
>>>>>> All the data continuously generated in your IT infrastructure
>>>>>> contains a definitive record of customers, application performance,
>>>>>> security threats, fraudulent activity, and more. Splunk takes this
>>>>>> data and makes sense of it. IT sense. And common sense.
>>>>>> http://p.sf.net/sfu/splunk-novd2d
>>>>>> _______________________________________________
>>>>>> Owfs-developers mailing list
>>>>>> [email protected]
>>>>>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>>> ------------------------------------------------------------------------------
>>>> Learn Windows Azure Live! Tuesday, Dec 13, 2011
>>>> Microsoft is holding a special Learn Windows Azure training event for
>>>> developers. It will provide a great way to learn Windows Azure and what it
>>>> provides. You can attend the event by watching it streamed LIVE online.
>>>> Learn more at http://p.sf.net/sfu/ms-windowsazure
>>>> _______________________________________________
>>>> Owfs-developers mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>> ------------------------------------------------------------------------------
>> Write once. Port to many.
>> Get the SDK and tools to simplify cross-platform app development. Create
>> new or port existing apps to sell to consumers worldwide. Explore the
>> Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
>> http://p.sf.net/sfu/intel-appdev
>> _______________________________________________
>> Owfs-developers mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers