Sponsored Content
Full Discussion: Detect Operating System
Top Forums Shell Programming and Scripting Detect Operating System Post 302770966 by mohtashims on Tuesday 19th of February 2013 07:37:50 AM
Old 02-19-2013
Question Detect Operating System

Hi,

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

for example:

Code:
ps -xef | grep java -> Itanium

Code:
ps -auxwww | greap java -> Solaris

 

9 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

cannot load any operating system

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)
Discussion started by: Derrek
3 Replies

2. UNIX for Dummies Questions & Answers

Operating System

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)
Discussion started by: alecks1975
1 Replies

3. UNIX for Dummies Questions & Answers

Unix Operating System?

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)
Discussion started by: -zorin
2 Replies

4. Filesystems, Disks and Memory

Fabric Operating System

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)
Discussion started by: Eronysis
0 Replies

5. Shell Programming and Scripting

Operating system LINUX

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)
Discussion started by: paradise
1 Replies

6. Homework & Coursework Questions

Operating system LINUX

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)
Discussion started by: paradise
1 Replies

7. Homework & Coursework Questions

Operating system LINUX

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)
Discussion started by: paradise
0 Replies

8. UNIX for Advanced & Expert Users

Best Operating System

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)
Discussion started by: parthmittal2007
1 Replies

9. UNIX for Advanced & Expert Users

What's my Operating System

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
Encode::Detect::Detector(3pm)				User Contributed Perl Documentation			     Encode::Detect::Detector(3pm)

NAME
Encode::Detect::Detector - Detects the encoding of data SYNOPSIS
use Encode::Detect::Detector; my $charset = detect($octets); my $d = new Encode::Detect::Detector; $d->handle($octets); $d->handle($more_octets); $d->end; my $charset = $d->getresult; DESCRIPTION
This module provides an interface to Mozilla's universal charset detector, which detects the charset used to encode data. METHODS
$charset = Encode::Detect::Detector->detect($octets) Detect the charset used to encode the data in $octets and return the charset's name. Returns undef if the charset cannot be determined with sufficient confidence. $d = Encode::Detect::Detector->new() Creates a new "Encode::Detect::Detector" object and returns it. $d->handle($octets) Provides an additional chunk of data to be examined by the detector. May be called multiple times. Returns zero on success, nonzero if a memory allocation failed. $d->eof Informs the detector that there is no more data to be examined. In many cases, this is necessary in order for the detector to make a decision on the charset. $d->reset Resets the detector to its initial state. $d->getresult Returns the name of the detected charset or "undef" if no charset has (yet) been decided upon. May be called at any time. SEE ALSO
Encode::Detect AUTHOR
John Gardiner Myers <jgmyers@proofpoint.com> SUPPORT
For help and thank you notes, e-mail the author directly. To report a bug, submit a patch, or add to the wishlist please visit the CPAN bug manager at: http://rt.cpan.org perl v5.14.2 2011-11-15 Encode::Detect::Detector(3pm)
All times are GMT -4. The time now is 05:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy