- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How "what" recognises version of Binary or Sha...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2003 09:11 PM
05-25-2003 09:11 PM
How "what" recognises version of Binary or Shared Library?
Can anyone help me how the version of binaries/ shared libraries is updated in HP- Unix? If we give what command on any binary, how the version will be displayed? If we give "what
Thanks in advance.
VJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2003 09:23 PM
05-25-2003 09:23 PM
Re: How "what" recognises version of Binary or Shared Library?
more:
$Revision: 82.3 $
Above is what command for more binary in my machine.
I guest the version of binaris are updated with applying the patch.
regards
mB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2003 09:54 PM
05-25-2003 09:54 PM
Re: How "what" recognises version of Binary or Shared Library?
@(#)
what searches this pattern and gets the information regarding the version from here.
you can do a
#what /usr/bin/ls
to get the revision info
Do a
#strings /usr/bin/ls|more
check for the pattern @(#) there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2003 10:12 PM
05-25-2003 10:12 PM
Re: How "what" recognises version of Binary or Shared Library?
For example, if a binary has been patched, a patch number may be included or the problem number that is generated from the HP lab.
e.g
# what /usr/bin/ftp
root@beaver:/root 158 # what /usr/bin/ftp
/usr/bin/ftp:
$Revision: vw: cheriv_JAGad35417 selectors: CUPI80_BL2000_1025 'cup_cheriv_jagad35417'
Thu Oct 26 23:12:20 PDT 2000 $
Copyright (c) 1985, 1989 Regents of the University of California.
The "JAGad35417" is the number that is associated with the patch that was loaded.
Unfortunately some patch numbers do not appear in the binary, but the HP problem report/Lab reference does. In the above case, it is 'jagad35417'
If you have a look at a patch on HP's web site you will see exactly what I'm talking about.
Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-26-2003 10:42 PM
05-26-2003 10:42 PM
Re: How "what" recognises version of Binary or Shared Library?
--
The what command searches the given files for all occurrences of the
pattern that get(1) substitutes for %Z% (currently @(#) at this
printing) and prints out what follows until the first ", >, new-line,
\, or null character. For example, if the C program in file f.c
contains
char ident[] = "@(#)identification information";
and f.c is compiled to yield f.o and a.out, the command
what f.c f.o a.out
prints
f.c: identification information
f.o: identification information
a.out: identification information
--
ranga
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2003 09:48 AM
05-27-2003 09:48 AM
Re: How "what" recognises version of Binary or Shared Library?
(It can work on any binary, not just those that have been formally packaged into depots.)
It simply looks for the '@(#)' string described in the man page for what(1).
$ what /usr/bin/ls
/usr/bin/ls:
$Revision: B.11.11_LR
Wed Nov 8 19:15:12 PST 2000 $
$ strings -a /usr/bin/ls | grep 2000
@@(#) $Revision: B.11.11_LR\n @(#) Wed Nov 8 19:15:12 PST 2000 $
The build process for a given binary may
add a specific what string, as described in the
DESCRIPTION section of the what(1) man page.
The 'JAGad12345' style numbers refer to HP's internal defect tracking system entries and sometimes appear in what strings, especially in patched binaries. These may have meaning to a human reading the output from what(1) but have no special meaning to what itself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2003 09:55 AM
05-27-2003 09:55 AM
Re: How "what" recognises version of Binary or Shared Library?
good programmers add them
you can also look at them using
strings whatever-binary-you-want-here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2003 09:56 AM
05-27-2003 09:56 AM
Re: How "what" recognises version of Binary or Shared Library?
good programmers add them
you can also look at them using
strings whatever-binary-you-want-here
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 07:32 PM
05-29-2003 07:32 PM
Re: How "what" recognises version of Binary or Shared Library?
Thank you all for replying. But, I think I have to give my problem in more detail.
If a binary X is coming from more than one file, a.c, b.c c.c, a.h, b.h etc..., Each of these files will have their own versions. How the version of X will be updated??? If the binary is coming from only one file, what ever version we specify in that single file will become the version of the binary also. But, if it is coming from so many files, how the version of the binary is updated???
Thanks and Regards
VJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2003 07:49 PM
05-29-2003 07:49 PM
Re: How "what" recognises version of Binary or Shared Library?
wmo_oas# which what
/usr/bin/what
wmo_oas# what /usr/bin/what
/usr/bin/what:
$Revision: 76.2 $
For utility which consist of more than one file, i will use swlist to search its fileset/product/bundle:
wmo_oas# swlist -l fileset |grep -i ignite
# Ignite-UX B.3.3.116 HP-UX System Installation Services
Ignite-UX.BOOT-KERNEL B.3.3.116 Installation Boot Kernel for S700/S800 clients
Ignite-UX.BOOT-SERVICES B.3.3.116 Network Boot Services for System Installations
Ignite-UX.FILE-SRV-11-00 B.3.3.116 File Archives Used By Clients During HP-UX Install
Ignite-UX.IGNITE B.3.3.116 Graphical Ignite User Interface for Installations
Ignite-UX.IGNT-ENG-A-MAN B.3.3.116 Ignite-UX Manual Pages
Ignite-UX.MGMT-TOOLS B.3.3.116 Tools for Managing Data Files on an Ignition Server
Ignite-UX.OBAM-RUN B.3.3.116 User Interface Libraries Needed for Older Systems
Ignite-UX.RECOVERY B.3.3.116 System disaster recovery tools
hope this helpful.
tommy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-30-2003 01:25 AM
07-30-2003 01:25 AM
Re: How "what" recognises version of Binary or Shared Library?
what i found on hpux is that if any/many of the source files contain strings starting with "@(#)" then the what string of the binary built will contain all these strings.
multiple such strings may be within the same source file and still will be shown in the output of 'what'.
--
ranga