HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] Anyway to control the order that faxstat lists them modems?



Even sort -n can't handle the sequence when the numeric field is not the same size and follows text.

Oh well, I'll just have to live with it.


On Sep 14, 2007, at 11:50 AM, Aidan Van Dyk wrote:


* John Warren <jwarren@xxxxxxxxxxxxx> [070914 14:21]:
True you can do it that way but the sort is not right when some of
the tty have one digit and some have two, i.e., ttyS5 and ttyS10.

sort -n does numerical sorting.


It just seems like there just may be a list that faxstat is using
which could be edited that might change the order but maybe not and
sort is the best one can do.

It takes them in the order the underlying FS keeps them in its
opendir/readdir/sequence. Most Linux FS *used* to keep them in the
order they were created (so when we opendir/readdir, they were returned
in file creation order). But modern Linux FS's no longer always return
them in creation order - they store them in hashes and tree's that
provide much faster access and higher scalability, but don't keep the
original creation order.


a.

--
Aidan Van Dyk aidan@xxxxxxxx
Senior Software Developer +1 215 825-8700 x8103
iFAX Solutions, Inc. http:// www.ifax.com/


____________________ HylaFAX(tm) Users Mailing List _______________________
 To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
 *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*




Project hosted by iFAX Solutions