LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 07-30-2009, 05:05 AM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 704

Rep: Reputation: 30
program for scanning libraries


Hi all,
i'd like to scan a set of (C++ linux static) libraries for some specific type definitions/structures. I am trying to do that via a script- see post also, but my knowledge or rather the lack of it doesn't help a lot. So, i am also asking if there is a tool/program, that could help me out. A command-line one preferably, so that i could use it in a bash script maybe.

Thanks in advance.
 
Old 07-30-2009, 05:26 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,755
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
You could use grep. Works in shell scripts too.
 
Old 07-30-2009, 05:29 AM   #3
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 704

Original Poster
Rep: Reputation: 30
Unfortunately grep seems to work only for text files. My small search showed, that it's not the right tool for binary files. I'd be happy to be wrong by the way
 
Old 07-31-2009, 05:51 PM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,755
Blog Entries: 1

Rep: Reputation: 238Reputation: 238Reputation: 238
Depending on what you want from the output of grep, it will work with binary files. Take a look at the man page.
 
  


Reply

Tags
definition, library, scan, structure, type


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to see which libraries a binary program needs r00tb33r Linux - Software 4 02-23-2008 06:22 AM
Hardware Scanning program errol_rufo Linux - Software 4 10-19-2005 11:03 PM
A Scanning Program The Stranger Suse/Novell 2 07-13-2005 12:10 AM
Linking program with .a libraries rudy2 Programming 2 04-22-2005 06:36 AM
How to check which libraries does a program use? sceadu Programming 7 12-27-2004 08:39 PM


All times are GMT -5. The time now is 03:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration