Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Order in /net: (11 Items)
   
Order in /net  
Just an idea I'm throwing for discussion.

I often wish when doing a ls /net that the output would be group by domain. 

Each system we have in the shop is given a different domain name, which is the customer name.  About 10 computers make 
up a system and each is given a name depending on what its job is.

When doing ls /net the output is hard to process :

controler
controler.machine1.client1
controler.machine1.client2
simulator
simulator.machine1.client1
simulator.machine1.client2
vision
vision.machine1.client1
vision.machine1.client2

I'd be much nicer if it looked like:

controler
simulator
vision
controler.machine1.client1
simulator.machine1.client1
vision.machine1.client1
controler.machine1.client2
simulator.machine1.client2
vision.machine1.client2

I kind of manage to get something similar by using ls -t ( each system is booted at different )

If I could I would like something to arrange domain by sub-directories:
/net/machine.client1/controler
/net/machine.client1/simulator
/net/machine.client1/vision
etc...

I tried to do with with the mount command but that didn't work quite right ( and I can't really use it ) since the 
hostname and domain are know after qnet starts.







RE: Order in /net  
I can try to get you the source to ls ... I might
be able to sneak it out past our lawyers  :-)

--
aboyd
Re: Order in /net  
ls is already available on F27

Andrew Boyd wrote:
> I can try to get you the source to ls ... I might
> be able to sneak it out past our lawyers  :-)
> 
> --
> aboyd
> 
> 
> _______________________________________________
> Technology
> http://community.qnx.com/sf/go/post23771
> 

-- 
cburgess@qnx.com
RE: Order in /net  
Shhh ... the lawyers might find out!  :-)

--
aboyd

RE: Order in /net  

> -----Original Message-----
> From: Colin Burgess [mailto:community-noreply@qnx.com]
> Sent: March-06-09 10:15 AM
> To: technology-networking
> Subject: Re: Order in /net
> 
> ls is already available on F27

LOL!

If I add an extra option `to sort by domain`, would QNX be ready/willing to put it in the official release?

> 
> Andrew Boyd wrote:
> > I can try to get you the source to ls ... I might
> > be able to sneak it out past our lawyers  :-)
> >
> > --
> > aboyd
> >
> >
> > _______________________________________________
> > Technology
> > http://community.qnx.com/sf/go/post23771
> >
> 
> --
> cburgess@qnx.com
> 
> _______________________________________________
> Technology
> http://community.qnx.com/sf/go/post23773
> 
Re: Order in /net  
Oh, you would probably have to talk to our lawyers about that! ;-P

Perhaps you should do it the unix way, and put the domain sorter in a seperate util?

Mario Charest wrote:
> 
>> -----Original Message-----
>> From: Colin Burgess [mailto:community-noreply@qnx.com]
>> Sent: March-06-09 10:15 AM
>> To: technology-networking
>> Subject: Re: Order in /net
>>
>> ls is already available on F27
> 
> LOL!
> 
> If I add an extra option `to sort by domain`, would QNX be ready/willing to put it in the official release?
> 
>> Andrew Boyd wrote:
>>> I can try to get you the source to ls ... I might
>>> be able to sneak it out past our lawyers  :-)
>>>
>>> --
>>> aboyd
>>>
>>>
>>> _______________________________________________
>>> Technology
>>> http://community.qnx.com/sf/go/post23771
>>>
>> --
>> cburgess@qnx.com
>>
>> _______________________________________________
>> Technology
>> http://community.qnx.com/sf/go/post23773
>>
> 
> 
> _______________________________________________
> Technology
> http://community.qnx.com/sf/go/post23776
> 

-- 
cburgess@qnx.com
RE: Order in /net  

> -----Original Message-----
> From: Colin Burgess [mailto:community-noreply@qnx.com]
> Sent: March-06-09 10:21 AM
> To: technology-networking
> Subject: Re: Order in /net
> 
> Oh, you would probably have to talk to our lawyers about that! ;-P
> 
> Perhaps you should do it the unix way, and put the domain sorter in a
> seperate util?

Nah, not just practical/robust.   What if somebody does ls -l , the sorter would have to be pretty smart ;-)

I`m thinking of a resmgr that would map /net as, hum gotta come up with an name real quick, /net_sorted_by_domain. 
Unlike /net it would put the name domain first.  That would be better than the Unix way that would be the QNX way!.

I see two challenges; find a better name then /net_sorted_by_domain, would probably left it up to the user, and not sure
 how I can reliably extra the hostname and domain name from the path.

> 
> Mario Charest wrote:
> >
> >> -----Original Message-----
> >> From: Colin Burgess [mailto:community-noreply@qnx.com]
> >> Sent: March-06-09 10:15 AM
> >> To: technology-networking
> >> Subject: Re: Order in /net
> >>
> >> ls is already available on F27
> >
> > LOL!
> >
> > If I add an extra option `to sort by domain`, would QNX be
> ready/willing to put it in the official release?
> >
> >> Andrew Boyd wrote:
> >>> I can try to get you the source to ls ... I might
> >>> be able to sneak it out past our lawyers  :-)
> >>>
> >>> --
> >>> aboyd
> >>>
> >>>
> >>> _______________________________________________
> >>> Technology
> >>> http://community.qnx.com/sf/go/post23771
> >>>
> >> --
> >> cburgess@qnx.com
> >>
> >> _______________________________________________
> >> Technology
> >> http://community.qnx.com/sf/go/post23773
> >>
> >
> >
> > _______________________________________________
> > Technology
> > http://community.qnx.com/sf/go/post23776
> >
> 
> --
> cburgess@qnx.com
> 
> _______________________________________________
> Technology
> http://community.qnx.com/sf/go/post23777
> 
Re: Order in /net  
Since qnet handles readdir for /net why not have qnet sort it there?  Is there any drawback to
qnet sorting the readdir output?

Mario Charest wrote:
> 
>> -----Original Message-----
>> From: Colin Burgess [mailto:community-noreply@qnx.com]
>> Sent: March-06-09 10:21 AM
>> To: technology-networking
>> Subject: Re: Order in /net
>>
>> Oh, you would probably have to talk to our lawyers about that! ;-P
>>
>> Perhaps you should do it the unix way, and put the domain sorter in a
>> seperate util?
> 
> Nah, not just practical/robust.   What if somebody does ls -l , the sorter would have to be pretty smart ;-)
> 
> I`m thinking of a resmgr that would map /net as, hum gotta come up with an name real quick, /net_sorted_by_domain. 
Unlike /net it would put the name domain first.  That would be better than the Unix way that would be the QNX way!.
> 
> I see two challenges; find a better name then /net_sorted_by_domain, would probably left it up to the user, and not 
sure how I can reliably extra the hostname and domain name from the path.
> 
>> Mario Charest wrote:
>>>> -----Original Message-----
>>>> From: Colin Burgess [mailto:community-noreply@qnx.com]
>>>> Sent: March-06-09 10:15 AM
>>>> To: technology-networking
>>>> Subject: Re: Order in /net
>>>>
>>>> ls is already available on F27
>>> LOL!
>>>
>>> If I add an extra option `to sort by domain`, would QNX be
>> ready/willing to put it in the official release?
>>>> Andrew Boyd wrote:
>>>>> I can try to get you the source to ls ... I might
>>>>> be able to sneak it out past our lawyers  :-)
>>>>>
>>>>> --
>>>>> aboyd
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Technology
>>>>> http://community.qnx.com/sf/go/post23771
>>>>>
>>>> --
>>>> cburgess@qnx.com
>>>>
>>>> _______________________________________________
>>>> Technology
>>>> http://community.qnx.com/sf/go/post23773
>>>>
>>>
>>> _______________________________________________
>>> Technology
>>> http://community.qnx.com/sf/go/post23776
>>>
>> --
>> cburgess@qnx.com
>>
>> _______________________________________________
>> Technology
>> http://community.qnx.com/sf/go/post23777
>>
> 
> 
> _______________________________________________
> Technology
> http://community.qnx.com/sf/go/post23779
> 

-- 
cburgess@qnx.com
RE: Order in /net  

> -----Original Message-----
> From: Colin Burgess [mailto:community-noreply@qnx.com]
> Sent: March-06-09 10:48 AM
> To: technology-networking
> Subject: Re: Order in /net
> 
> Since qnet handles readdir for /net why not have qnet sort it there?

I think ls sort it alphabetically by default.  Having qnet sort it wouldn't make any different.  The name have to be 
presented formatted differently.

> Is there any drawback to
> qnet sorting the readdir output?
> 
> Mario Charest wrote:
> >
> >> -----Original Message-----
> >> From: Colin Burgess [mailto:community-noreply@qnx.com]
> >> Sent: March-06-09 10:21 AM
> >> To: technology-networking
> >> Subject: Re: Order in /net
> >>
> >> Oh, you would probably have to talk to our lawyers about that! ;-P
> >>
> >> Perhaps you should do it the unix way, and put the domain sorter in
> a
> >> seperate util?
> >
> > Nah, not just practical/robust.   What if somebody does ls -l , the
> sorter would have to be pretty smart ;-)
> >
> > I`m thinking of a resmgr that would map /net as, hum gotta come up
> with an name real quick, /net_sorted_by_domain. Unlike /net it would
> put the name domain first.  That would be better than the Unix way that
> would be the QNX way!.
> >
> > I see two challenges; find a better name then /net_sorted_by_domain,
> would probably left it up to the user, and not sure how I can reliably
> extra the hostname and domain name from the path.
> >
> >> Mario Charest wrote:
> >>>> -----Original Message-----
> >>>> From: Colin Burgess [mailto:community-noreply@qnx.com]
> >>>> Sent: March-06-09 10:15 AM
> >>>> To: technology-networking
> >>>> Subject: Re: Order in /net
> >>>>
> >>>> ls is already available on F27
> >>> LOL!
> >>>
> >>> If I add an extra option `to sort by domain`, would QNX be
> >> ready/willing to put it in the official release?
> >>>> Andrew Boyd wrote:
> >>>>> I can try to get you the source to ls ... I might
> >>>>> be able to sneak it out past our lawyers  :-)
> >>>>>
> >>>>> --
> >>>>> aboyd
> >>>>>
> >>>>>
> >>>>> _______________________________________________
> >>>>> Technology
> >>>>> http://community.qnx.com/sf/go/post23771
> >>>>>
> >>>> --
> >>>> cburgess@qnx.com
> >>>>
> >>>> _______________________________________________
> >>>> Technology
> >>>> http://community.qnx.com/sf/go/post23773
> >>>>
> >>>
> >>> _______________________________________________
> >>> Technology
> >>> http://community.qnx.com/sf/go/post23776
> >>>
> >> --
> >> cburgess@qnx.com
> >>
> >> _______________________________________________
> >> Technology
> >> http://community.qnx.com/sf/go/post23777
> >>
> >
> >
> > _______________________________________________
> > Technology
> > http://community.qnx.com/sf/go/post23779
> >
> 
> --
> cburgess@qnx.com
> 
> _______________________________________________
> Technology
> http://community.qnx.com/sf/go/post23780
> 
Re: Order in /net  
In that case I would write a netls util.  Having QNET specific knowledge in ls seems like overkill...

Mario Charest wrote:
> 
>> -----Original Message-----
>> From: Colin Burgess [mailto:community-noreply@qnx.com]
>> Sent: March-06-09 10:48 AM
>> To: technology-networking
>> Subject: Re: Order in /net
>>
>> Since qnet handles readdir for /net why not have qnet sort it there?
> 
> I think ls sort it alphabetically by default.  Having qnet sort it wouldn't make any different.  The name have to be 
presented formatted differently.
> 
>> Is there any drawback to
>> qnet sorting the readdir output?
>>
>> Mario Charest wrote:
>>>> -----Original Message-----
>>>> From: Colin Burgess [mailto:community-noreply@qnx.com]
>>>> Sent: March-06-09 10:21 AM
>>>> To: technology-networking
>>>> Subject: Re: Order in /net
>>>>
>>>> Oh, you would probably have to talk to our lawyers about that! ;-P
>>>>
>>>> Perhaps you should do it the unix way, and put the domain sorter in
>> a
>>>> seperate util?
>>> Nah, not just practical/robust.   What if somebody does ls -l , the
>> sorter would have to be pretty smart ;-)
>>> I`m thinking of a resmgr that would map /net as, hum gotta come up
>> with an name real quick, /net_sorted_by_domain. Unlike /net it would
>> put the name domain first.  That would be better than the Unix way that
>> would be the QNX way!.
>>> I see two challenges; find a better name then /net_sorted_by_domain,
>> would probably left it up to the user, and not sure how I can reliably
>> extra the hostname and domain name from the path.
>>>> Mario Charest wrote:
>>>>>> -----Original Message-----
>>>>>> From: Colin Burgess [mailto:community-noreply@qnx.com]
>>>>>> Sent: March-06-09 10:15 AM
>>>>>> To: technology-networking
>>>>>> Subject: Re: Order in /net
>>>>>>
>>>>>> ls is already available on F27
>>>>> LOL!
>>>>>
>>>>> If I add an extra option `to sort by domain`, would QNX be
>>>> ready/willing to put it in the official release?
>>>>>> Andrew Boyd wrote:
>>>>>>> I can try to get you the source to ls ... I might
>>>>>>> be able to sneak it out past our lawyers  :-)
>>>>>>>
>>>>>>> --
>>>>>>> aboyd
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Technology
>>>>>>> http://community.qnx.com/sf/go/post23771
>>>>>>>
>>>>>> --
>>>>>> cburgess@qnx.com
>>>>>>
>>>>>> _______________________________________________
>>>>>> Technology
>>>>>> http://community.qnx.com/sf/go/post23773
>>>>>>
>>>>> _______________________________________________
>>>>> Technology
>>>>> http://community.qnx.com/sf/go/post23776
>>>>>
>>>> --
>>>> cburgess@qnx.com
>>>>
>>>> _______________________________________________
>>>> Technology
>>>> http://community.qnx.com/sf/go/post23777
>>>>
>>>
>>> _______________________________________________
>>> Technology
>>> http://community.qnx.com/sf/go/post23779
>>>
>> --
>>...
RE: Order in /net  

> -----Original Message-----
> From: Colin Burgess [mailto:community-noreply@qnx.com]
> Sent: March-06-09 11:31 AM
> To: technology-networking
> Subject: Re: Order in /net
> 
> In that case I would write a netls util.  Having QNET specific
> knowledge in ls seems like overkill...

I agree.  Netls would be nice for an eventual inclusion in the OS, but for my use I'd rather have a resmgr.

> 
> Mario Charest wrote:
> >
> >> -----Original Message-----
> >> From: Colin Burgess [mailto:community-noreply@qnx.com]
> >> Sent: March-06-09 10:48 AM
> >> To: technology-networking
> >> Subject: Re: Order in /net
> >>
> >> Since qnet handles readdir for /net why not have qnet sort it there?
> >
> > I think ls sort it alphabetically by default.  Having qnet sort it
> wouldn't make any different.  The name have to be presented formatted
> differently.
> >
> >> Is there any drawback to
> >> qnet sorting the readdir output?
> >>
> >> Mario Charest wrote:
> >>>> -----Original Message-----
> >>>> From: Colin Burgess [mailto:community-noreply@qnx.com]
> >>>> Sent: March-06-09 10:21 AM
> >>>> To: technology-networking
> >>>> Subject: Re: Order in /net
> >>>>
> >>>> Oh, you would probably have to talk to our lawyers about that! ;-P
> >>>>
> >>>> Perhaps you should do it the unix way, and put the domain sorter
> in
> >> a
> >>>> seperate util?
> >>> Nah, not just practical/robust.   What if somebody does ls -l , the
> >> sorter would have to be pretty smart ;-)
> >>> I`m thinking of a resmgr that would map /net as, hum gotta come up
> >> with an name real quick, /net_sorted_by_domain. Unlike /net it would
> >> put the name domain first.  That would be better than the Unix way
> that
> >> would be the QNX way!.
> >>> I see two challenges; find a better name then
> /net_sorted_by_domain,
> >> would probably left it up to the user, and not sure how I can
> reliably
> >> extra the hostname and domain name from the path.
> >>>> Mario Charest wrote:
> >>>>>> -----Original Message-----
> >>>>>> From: Colin Burgess [mailto:community-noreply@qnx.com]
> >>>>>> Sent: March-06-09 10:15 AM
> >>>>>> To: technology-networking
> >>>>>> Subject: Re: Order in /net
> >>>>>>
> >>>>>> ls is already available on F27
> >>>>> LOL!
> >>>>>
> >>>>> If I add an extra option `to sort by domain`, would QNX be
> >>>> ready/willing to put it in the official release?
> >>>>>> Andrew Boyd wrote:
> >>>>>>> I can try to get you the source to ls ... I might
> >>>>>>> be able to sneak it out past our lawyers  :-)
> >>>>>>>
> >>>>>>> --
> >>>>>>> aboyd
> >>>>>>>
> >>>>>>>
> >>>>>>> _______________________________________________
> >>>>>>> Technology
> >>>>>>> http://community.qnx.com/sf/go/post23771
> >>>>>>>
> >>>>>> --
> >>>>>> cburgess@qnx.com
> >>>>>>
> >>>>>> _______________________________________________
> >>>>>> Technology
> >>>>>>...