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

Re: Aktuelle IP per Skript auslesen



Thilo Six wrote:
> Tobias Nissen wrote the following on 04.01.2009 13:38
>> Tobias Nissen wrote:
>> [...]
>>> Die "Lokalisierung" kann man sich sparen, indem man in Skripten
>>> immer die unlokalisierten Varianten der aufgerufenen Programme
>>> aufruft, also etwa
>>>
>>>   LANG=C ifconfig ppp0 ...
>> 
>> Oder doch lieber mit LC_ALL=C...
>> 
>> http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html#tag_08_02
> 
> noch besser:
> 
> LC_ALL=en_US.UTF-8 ...
> 
> http://people.debian.org/~osamu/pub/getwiki/html/ch09.en.html#thereconfigurationofthelocale

Ein solches Skript wäre aber nicht sehr portabel. Die einzige locale
auf die man sich verlassen kann ist "C", da diese garantiert auf jedem
Unix-System existiert.

Attachment: pgpIFUkPAhUuS.pgp
Description: PGP signature


Reply to: