03-11-2012
Even in Linux there is no simple approach to getting that information. Some Linux distributions "lie" about their release name. Some use lsb-release. The C code we use to determine OS and release information is a couple of hundred lines of code.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello there,
i just want to know what are the different type of shells and the main difference betwee them. The problem is that if you try to search over the net you will find a lot of information and hence you will have no enough time to read all of them.....Anyone can help with this?? (1 Reply)
Discussion started by: charbel
1 Replies
2. Shell Programming and Scripting
Hello,
How to check if two variables( fields in awk) have the same datatype ( INTEGER , REAL, TEXT ) ? (2 Replies)
Discussion started by: scotty_123
2 Replies
3. Shell Programming and Scripting
Can one string type variable changed into the date type variable. (1 Reply)
Discussion started by: rinku
1 Replies
4. Programming
Dear colleagues,
One of my friend have a problem with c code. While compiling a c program it displays a message like
"array type has incomplete element type". Any body can provide a solution for it.
Jaganadh.G (1 Reply)
Discussion started by: jaganadh
1 Replies
5. Shell Programming and Scripting
I am using perl 5.8.0.
I need to check some values to see it they are floats. Our system does not have Data::Types so I can't use is_float. Is there something else that I can use? The only thing in Data is Dump.pm. I am not allowed to download anything to our system so I have to use what I have.... (3 Replies)
Discussion started by: ajgwin
3 Replies
6. Solaris
Hi
i need to know how i made for getting witch RAID my system used
exist a commad for this ?
thank you (7 Replies)
Discussion started by: dimitris
7 Replies
7. Shell Programming and Scripting
I am trying to write a script that checks whether or not, a file exists on multiple servers.
My code / logic so far is:
#!/usr/bin/ksh
print "Enter File name to be checked"
read MYFILE
ssh server1 "
cd /var/opt/logs ;
if
then
... (4 Replies)
Discussion started by: momin
4 Replies
8. SCO
Hi, (i'm sorry for my english)
I'm a problem on boot sco unix 5.0.5 open server.
this stop at "Checking protected password and checking subsystem databases"
(See this image )
I'm try this:
1) http://www.digipedia.pl/usenet/thread/50/37093/#post37094
2) SCO: SCO Unix - Server hangs... (9 Replies)
Discussion started by: buji
9 Replies
9. Shell Programming and Scripting
Suppose i have 3 different servers say x,y and z.
Im running some process say ABC and 40 instances for the same is being created.
In load sharing suppose on
server x, 20 instances are running
server y, 10 instances are running
server z, 10 instances are running.
While checking the... (1 Reply)
Discussion started by: ankitknit
1 Replies
LEARN ABOUT SUNOS
lsb_release
lsb_release(1) General Commands Manual lsb_release(1)
NAME
lsb_release - print distribution-specific information
SYNOPSIS
lsb_release [options]
DESCRIPTION
The lsb_release command provides certain LSB (Linux Standard Base) and distribution-specific information.
If no options are given, the -v option is assumed.
OPTIONS
The program follows the usual GNU command line syntax, with long options starting with two dashes (`--'). A summary of options are
included below.
-v, --version
Show the version of the LSB against which your current installation is compliant. The version is expressed as a colon separated
list of LSB module descriptions.
-i, --id
Display the distributor's ID.
-d, --description
Display a description of the currently installed distribution.
-r, --release
Display the release number of the currently installed distribution.
-c, --codename
Display the code name of the currently installed distribution.
-a, --all
Display all of the above information.
-s, --short
Use the short output format for any information displayed. This format omits the leading header(s).
-h, --help
Show summary of options.
NOTES
This is a reimplementation of the lsb_release command provided by the Free Standards Group. Any bugs are solely the responsibility of the
author below.
Detection of systems using a mix of packages from various distributions or releases is something of a black art; the current heuristic
tends to assume that the installation is of the earliest distribution which is still being used by apt but that heuristic is subject to
error.
SEE ALSO
lsb(8)
AUTHOR
Chris Lawrence <lawrencc@debian.org>.
lsb_release(1)