in reply to Re^2: Portable way to extract string from a binary
in thread Portable way to extract string from a binary
Lol.. yup, I know, I'm opening a case with Sybase on it. Will let you know what I find.
This is what I asked in the case:
basically I'm looking for something like so:
$ my_app --openclient-version
----
This application is using OpenClient 12.5.1 ebf 9999 for Linux 64bit. This application was BUILT using OpenClient 12.5.1 ebf 9980.
---
The "built" line would be hard coded by the application during the compilation process - I would handle this...
The "using" would be read from some method in the openclient library (ctlib or dblib) that my application is using *now*.
I'm looking for a way to determine the "using" openclient version without performing a system call to run the ldd or strings commands.
A little more than what we are looking for but, I think it would be a better solution
Jason L. Froebe
No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1
Edit by tye, remove PRE tags around long lines
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Portable way to extract string from a binary
by mpeppler (Vicar) on Jul 14, 2004 at 15:32 UTC | |
by jfroebe (Parson) on Jul 14, 2004 at 15:38 UTC | |
by mpeppler (Vicar) on Jul 14, 2004 at 15:53 UTC | |
by jfroebe (Parson) on Jul 14, 2004 at 16:11 UTC |