Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: RANCID: Users

Spurious up/down messages - locale & sort

 

 

RANCID users RSS feed   Index | Next | Previous | View Threaded


daniel.schmidt at wyo

Nov 22, 2011, 9:45 AM

Post #1 of 3 (483 views)
Permalink
Spurious up/down messages - locale & sort

I really thought we had this one solved with the tr '[A-Z]' '[a-z]' but, as
it turns out, a dash is < or > digit depending if you locale is POSIX or
en_US.UTF-8. Cron runs as POSIX, so any manual updates have the
possibility of generating spurious up/down diffs. Unable to think of a
good solution, I instead uttered profane words and implemented a quick
solution.



$ diff -U 4 control_rancid.bak control_rancid

--- control_rancid.bak 2011-11-22 10:15:36.000000000 -0700

+++ control_rancid 2011-11-22 10:19:51.000000000 -0700

@@ -42,8 +42,12 @@

#

# control_rancid $GROUP

#

+# #*@& sort locale!!

+LC_COLLATE="POSIX"

+export LC_COLLATE

+

# print a usage message to stderr

pr_usage() {

echo "usage: $0 [-V] [-r device_name] [-m mail rcpt] group" >&2;

}

E-Mail to and from me, in connection with the transaction
of public business,is subject to the Wyoming Public Records
Act, and may be disclosed to third parties.


heas at shrubbery

Nov 22, 2011, 12:59 PM

Post #2 of 3 (450 views)
Permalink
Re: Spurious up/down messages - locale & sort [In reply to]

Tue, Nov 22, 2011 at 10:45:59AM -0700, Daniel Schmidt:
> I really thought we had this one solved with the tr '[A-Z]' '[a-z]' but, as
> it turns out, a dash is < or > digit depending if you locale is POSIX or
> en_US.UTF-8. Cron runs as POSIX, so any manual updates have the
> possibility of generating spurious up/down diffs. Unable to think of a
> good solution, I instead uttered profane words and implemented a quick
> solution.
>

probably belongs in rancid.conf rather than control_rancid.
_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss


daniel.schmidt at wyo

Nov 22, 2011, 1:18 PM

Post #3 of 3 (452 views)
Permalink
Re: Spurious up/down messages - locale & sort [In reply to]

Yeah, that does sound like a better idea

-----Original Message-----
From: john heasley [mailto:heas [at] shrubbery]
Sent: Tuesday, November 22, 2011 1:59 PM
To: Daniel Schmidt
Cc: rancid-discuss [at] shrubbery
Subject: Re: [rancid] Spurious up/down messages - locale & sort

Tue, Nov 22, 2011 at 10:45:59AM -0700, Daniel Schmidt:
> I really thought we had this one solved with the tr '[A-Z]' '[a-z]'
> but, as it turns out, a dash is < or > digit depending if you locale
> is POSIX or en_US.UTF-8. Cron runs as POSIX, so any manual updates
> have the possibility of generating spurious up/down diffs. Unable to
> think of a good solution, I instead uttered profane words and
> implemented a quick solution.
>

probably belongs in rancid.conf rather than control_rancid.
E-Mail to and from me, in connection with the transaction
of public business,is subject to the Wyoming Public Records
Act, and may be disclosed to third parties.

_______________________________________________
Rancid-discuss mailing list
Rancid-discuss [at] shrubbery
http://www.shrubbery.net/mailman/listinfo.cgi/rancid-discuss

RANCID users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.