05-24-2005
Determine Unix Version
Is there a trick to determine the exact version from Unix that one is working with?
I would have expected to see it after logon, but all I get are some Copyright-messages...
I know it's some HP-UX, but I would like to know the version-number
Tnx in advance!
Dave
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm looking for a generic (i.e. would be resident in most/all unix flavors) internal command for determining my OS and version. When I telnet to a box here @ work, I get none of that info and can't remember the equivalent of the DOS ver command; I know I used to know this! Thanks. (2 Replies)
Discussion started by: brian.wilson
2 Replies
2. Solaris
Is there a way I can determine the LOM version on a Sun machine without actually shutting the system down? I'm confused. :) (2 Replies)
Discussion started by: sysera
2 Replies
3. Slackware
Apart from the obvious, uname command, is there anyway to determine which Linux distribution and version of the distribution has been installed? (7 Replies)
Discussion started by: mbb
7 Replies
4. UNIX for Dummies Questions & Answers
how can i determine which type of unix
(solaris ,AIX,HP-UX...) is installed on the machine that i am working? (2 Replies)
Discussion started by: gfhgfnhhn
2 Replies
5. Solaris
i have a program writing in PRO C which currently running in unix version 8 tie with oracle 8i, but in the future company gonna migrate this OS to version 9.
Anything i have to prepare for my PRO C program to run in unix version 9? or anything would that impact my program couldn't run well?
what... (2 Replies)
Discussion started by: lsy
2 Replies
6. UNIX for Dummies Questions & Answers
How to determine if a host is connected to the Internet in Unix ? (1 Reply)
Discussion started by: shuhang2
1 Replies
7. UNIX for Dummies Questions & Answers
How can you determine the level ot the operating system
on an HP UNIX System? (2 Replies)
Discussion started by: aschmid
2 Replies
8. Shell Programming and Scripting
I currently have a shell script that utilizes the "Date" binary - this application is slightly different on OS X (BSD General Commmand) and Linux systems (gnu date). In particular, the version on OS X requires the following to get a date 14 days in the future "date -v+14d -u +%Y-%m-%d" where gnu... (1 Reply)
Discussion started by: colinjohnson
1 Replies
9. Shell Programming and Scripting
This is an odd question and I didn't really know what category it fits. I just installed Ubuntu 12.10. During the installation process, the screen informed me that Windows 7 was installed in a particular partition.
I'm just wondering how this was accomplished. Using 'fdisk -l' will indicate... (1 Reply)
Discussion started by: jamarsh
1 Replies
10. Shell Programming and Scripting
Hello All :)
I want to write a shell script to find the file system usage on multiple UNIX servers.
Commands: df -g fsJCAPS
Below script works fine and it displays results on terminal/console. I want to store /redirect output on to local server from where I'm running the script.
... (3 Replies)
Discussion started by: Mohammad Nawaz
3 Replies
LEARN ABOUT SUNOS
elf_version
elf_version(3ELF) ELF Library Functions elf_version(3ELF)
NAME
elf_version - coordinate ELF library and application versions
SYNOPSIS
cc [ flag ... ] file ... -lelf [ library ... ]
#include <libelf.h>
unsigned elf_version(unsigned ver);
DESCRIPTION
As elf(3ELF) explains, the program, the library, and an object file have independent notions of the latest ELF version. elf_version() lets
a program query the ELF library's internal version. It further lets the program specify what memory types it uses by giving its own working
version, ver, to the library. Every program that uses the ELF library must coordinate versions as described below.
The header <libelf.h> supplies the version to the program with the macro EV_CURRENT. If the library's internal version (the highest version
known to the library) is lower than that known by the program itself, the library may lack semantic knowledge assumed by the program.
Accordingly, elf_version() will not accept a working version unknown to the library.
Passing ver equal to EV_NONE causes elf_version() to return the library's internal version, without altering the working version. If ver is
a version known to the library, elf_version() returns the previous (or initial) working version number. Otherwise, the working version
remains unchanged and elf_version() returns EV_NONE.
EXAMPLES
Example 1: A sample display of using the elf_version() function.
The following excerpt from an application program protects itself from using an older library:
if (elf_version(EV_CURRENT) == EV_NONE) {
/* library out of date */
/* recover from error */
}
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Stable |
+-----------------------------+-----------------------------+
|MT-Level |MT-Safe |
+-----------------------------+-----------------------------+
SEE ALSO
elf(3ELF), elf32_xlatetof(3ELF), elf_begin(3ELF), libelf(3LIB), attributes(5)
NOTES
The working version should be the same for all operations on a particular ELF descriptor. Changing the version between operations on a
descriptor will probably not give the expected results.
SunOS 5.10 11 Jul 2001 elf_version(3ELF)