clacker
Group: Members
Posts: 570
Joined: June 2004 |
|
Posted: Jan. 14 2006,13:30 |
|
Mikshaw, That's true, but how can you check every applications. I wrote this little script that runs ldd on every file in a directory that has the ELF magic cookie in it's header. I assumed that they would be the only files that needed to be tested. Is that true?
Code Sample | #!/bin/bash
if [ ! -d $1 ]; then COOKIE=`head -c4 $1` if [ `echo $COOKIE | tail -c4` = "ELF" ]; then
if ( ldd $1 | grep fltk ); then echo found in file: $1 fi fi fi |
I ran this on /bin, /usr/bin, and /usr/X11R6/bin but found no matches. This line works as well to look for matches:
for i in /usr/X11R6/bin/*; do ldd $i | grep fltk; done
|