08-16-2016
Thank you to "MadeinGermany" ! That covered everything!
And made me remember how cool it is to be of German geneology myself :-)
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Sorry I think someone already pointed out this but I couldn't find it.
Please tell me what is the difference between SunOS Version and Solaris Version.
What is the purpose of maintaining these two things ?
Thanks (2 Replies)
Discussion started by: champion
2 Replies
2. UNIX for Dummies Questions & Answers
I just received a Sun microsystem ultra 5 for a auction, it is running sunOS version 5.7, when it boots it asks for user login and password, I dont have either, is there a way to login in as root user with out the password or is there a way to recover the password so I can get in to my system? (1 Reply)
Discussion started by: mscav219
1 Replies
3. Solaris
I just been audited and one the recommendations is to hide the SSH version or give fake information.
I went to openssh.com they don't seem to have any info on how to fix this :confused:
Anybody knows how the heck can I hide the SSH version? The part which says
# telnet localhost 22... (19 Replies)
Discussion started by: sparcguy
19 Replies
4. UNIX for Dummies Questions & Answers
Hello,
I have a server with a SunOS, when its boots it shows me the version and then the the screen turns grey, I know with unix server you will promted to login, however in SUNOS this is not the case and there is balck screen..
I know the server is up as i can ping it and SSH-it, however... (0 Replies)
Discussion started by: nexOne
0 Replies
5. Windows & DOS: Issues & Discussions
hello everyone.
I created a java program that will pop up a dialog, and scheduled it as a task. Everything works fine except when the scheduled java program runs and the dialog pops up, there is another dos prompt (svchost.exe) hanging behind the dialog box and doesn't go anywhere until the java... (0 Replies)
Discussion started by: milhan
0 Replies
6. Linux
Hi,
I intend to hide messages that appear when I login through telnet like:
Entering character mode
Escape character is '^]'.
Please let me know how to do it ?
Thanks (2 Replies)
Discussion started by: fakharu
2 Replies
7. Shell Programming and Scripting
Hey guys,
I have some task from my office to lock user on the specified directory after the user logged on using ssh. And then run prompt program to fill the required information. Yeah, just like an ATM system.
My question:
How could I do those?? AFAIK I have to edit the ~./bashrc. But the... (1 Reply)
Discussion started by: franzramadhan
1 Replies
8. Solaris
Sorry if here is the wrong place to put this question, but for college we develop small programs in C using Solaris. Most of time is OK for us not to document nothing, until now.
Every time program is executed must print OS name.
Does Solaris has some predefined macros which I can include... (3 Replies)
Discussion started by: solaris_user
3 Replies
9. Shell Programming and Scripting
Hi,
How i can pass the login details to the URL which is password protected with the htaccess using command line or script (perl,or shell,or php).
Any help or hint appreciated.
Thanks,
SJ (4 Replies)
Discussion started by: SilvesterJ
4 Replies
10. UNIX for Advanced & Expert Users
Hi,
We have a scenario of OS upgrade and in a simialr upgrade last time, we noticed a few stray bytes appearing and it resulted in application programs failing.....
Could you please share your expertise in removing such control characters in input/output files, to keep the ball rolling in... (1 Reply)
Discussion started by: ab_2010
1 Replies
LEARN ABOUT DEBIAN
lingua::preferred
Preferred(3pm) User Contributed Perl Documentation Preferred(3pm)
NAME
Lingua::Preferred - Perl extension to choose a language
SYNOPSIS
use Lingua::Preferred qw(which_lang acceptable_lang);
my @wanted = qw(en de fr it de_CH);
my @available = qw(fr it de);
my $which = which_lang(@wanted, @available);
print "language $which is the best of those available
";
foreach (qw(en_US fr nl de_DE)) {
print "language $_ is acceptable
"
if acceptable_lang(@wanted, $_);
}
DESCRIPTION
Often human-readable information is available in more than one language. Which should you use? This module provides a way for the user to
specify possible languages in order of preference, and then to pick the best language of those available. Different 'dialects' given by
the 'territory' part of the language specifier (such as en, en_GB, and en_US) are also supported.
The routine "which_lang()" picks the best language from a list of alternatives. The arguments are:
o a reference to a list of preferred languages (first is best). Here, a language is a string like 'en' or 'fr_CA'. ('fr_*' can also be
given - see below.) 'C' (named for the Unix 'C' locale) matches any language.
o a reference to non-empty list of available languages. Here, a language can be like 'en', 'en_CA', or "undef" meaning 'unknown'.
The return code is which language to use. This will always be an element of the available languages list.
The cleverness of this module (if you can call it that) comes from inferring implicit language preferences based on the explicit list
passed in. For example, if you say that en is acceptable, then en_IE and en_DK will presumably be acceptable too (but not as good as just
plain en). If you give your language as en_US, then en is almost as good, with the other dialects of en following soon afterwards.
If there is a tie between two choices, as when two dialects of the same language are available and neither is explicitly preferred, or when
none of the available languages appears in the user's list, then the choice appearing earlier in the available list is preferred.
Sometimes, the automatic inferring of related dialects is not what you want, because a language dialect may be very different to the 'main'
language, for example Swiss German or some forms of English. For this case, the special form 'XX_*' is available. If you dislike Mexican
Spanish (as a completely arbitrary example), then "[ 'es', 'es_*', 'es_MX' ]" would rank this dialect below any other dialect of es (but
still acceptable). You don't have to explicitly list every other dialect of Spanish before es_MX.
So for example, supposing @avail contains the languages available:
o You know English and prefer US English:
$which = which_lang([ 'en_US' ], @avail);
o You know English and German, German/Germany is preferred:
$which = which_lang([ 'en', 'de_DE' ], @avail);
o You know English and German, but preferably not Swiss German:
$which = which_lang([ 'en', 'de', 'de_*', 'de_CH' ], @avail);
Here any dialect of German (eg de_DE, de_AT) is preferable to de_CH.
Whereas "which_lang()" picks the best language from a list of alternatives, "acceptable_lang()" answers whether a single language is
included (explicitly or implicitly) in the list of wanted languages. It adds the implicit dialects in the same way.
AUTHOR
Ed Avis, ed@membled.com
SEE ALSO
perl(1).
perl v5.8.8 2005-10-17 Preferred(3pm)