I need a script that needs to detect the Operating System and based upon wheter it is Linux, Solaris x86, Sparc, Itanium etc it should populate "ps" command with detailed output accordingly
I've tried installing Linux (SuSE because it's the easiest disc I had on hand) and Windows, and neither can boot. The specific problems are below.
With Linux: During the installation, I get error message on most of the packages, even though I left all of them up to the default, and it sais... (3 Replies)
Which is much more powerful as an operating system:
1. Windows 2000
2. Windows 98
3. Windows XP
4. Windows ME
5. Unix
6. Linux
and why is it much more powerful than the other operating systems that i have mentioned.
thanks for your info... (1 Reply)
Hey all, I currently use FreeBSD and linux and have decided I want to use a proper Unix distrobution. Which Unix distro would you members recommend. The only requirments that I have is that I can use some pogramming utilities available. I don't mind the install process. One more thing, I know some... (2 Replies)
Would any of your gentlemen have come across a decent reference for the FOS in your wanderings? Brocade just seems to want to sell me classes and FAN books :/ (0 Replies)
Write a C program that accepts 3 parameters. Each parameter indicates the quantity of product to be
produced. Each product will be produced in different production line. Ready products will be placed
in a buffer area located at the end of each production line. Packaging workers will pack the... (1 Reply)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a C program that accepts 3 parameters. Each parameter indicates the quantity of product to be
produced.... (1 Reply)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a C program that accepts 3 parameters. Each parameter indicates the quantity of product to be
produced.... (0 Replies)
Hello All,
I want to install Linux on my machine, so please tell me one thing which is the best to install-
1.)Red Hat
2.)Cent OS
3.)Red Hat
4.)Ubuntu
5.)Fedora
except that if there is any please tell me. (1 Reply)
Can we know the operating given the IP address or DNS of the host.
All I have is
file://myserver/myapp (4 Replies)
Discussion started by: mohtashims
4 Replies
LEARN ABOUT MOJAVE
i18n::langtags::detect5.18
I18N::LangTags::Detect(3pm) Perl Programmers Reference Guide I18N::LangTags::Detect(3pm)NAME
I18N::LangTags::Detect - detect the user's language preferences
SYNOPSIS
use I18N::LangTags::Detect;
my @user_wants = I18N::LangTags::Detect::detect();
DESCRIPTION
It is a common problem to want to detect what language(s) the user would prefer output in.
FUNCTIONS
This module defines one public function, "I18N::LangTags::Detect::detect()". This function is not exported (nor is even exportable), and
it takes no parameters.
In scalar context, the function returns the most preferred language tag (or undef if no preference was seen).
In list context (which is usually what you want), the function returns a (possibly empty) list of language tags representing (best first)
what languages the user apparently would accept output in. You will probably want to pass the output of this through
"I18N::LangTags::implicate_supers_tightly(...)" or "I18N::LangTags::implicate_supers(...)", like so:
my @languages =
I18N::LangTags::implicate_supers_tightly(
I18N::LangTags::Detect::detect()
);
ENVIRONMENT
This module looks for several environment variables, including REQUEST_METHOD, HTTP_ACCEPT_LANGUAGE, LANGUAGE, LC_ALL, LC_MESSAGES, and
LANG.
It will also use the Win32::Locale module, if it's installed.
SEE ALSO
I18N::LangTags, Win32::Locale, Locale::Maketext.
(This module's core code started out as a routine in Locale::Maketext; but I moved it here once I realized it was more generally useful.)
COPYRIGHT
Copyright (c) 1998-2004 Sean M. Burke. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The programs and documentation in this dist are distributed in the hope that they will be useful, but without any warranty; without even
the implied warranty of merchantability or fitness for a particular purpose.
AUTHOR
Sean M. Burke "sburke@cpan.org"
perl v5.18.2 2013-11-04 I18N::LangTags::Detect(3pm)