This utility runs ldd-recursive to get exec`s deps outputting to TailBox or rxvt.
Working solution:
File name: ldd-gui
Code: Select all
#!/bin/sh
######### GUI select exec. file, run ldd and display the output.
libX="X11 Xau Xdamage Xdmcp Xext Xfixes Xxf86vm xcb"
libEX="linux asound libc libdl libdrm GL\. GLU\. freetype gcc_s\
libm librt pthread libtiff stdc++ libz"
fselP=/SqApp/mnt # file select path
exePF=`Xdialog --stdout --title " Select an Executable." --fselect $fselP 0 0`
[ $? -gt 0 ]&& exit
echo '' > /tmp/ldd.lst
msg='Exclusive Dependency List.'
Xdialog --title " LDD Recursive" --tailbox /tmp/ldd.lst 32 64 &
L=`echo "$libEX $libX" |tr '[:space:]' '\n'`
ldd-recursive.pl $exePF |while read D
do
[ ! `echo "$L" |grep $D` ]&& L=`echo -e "$L\x0a$D"` && echo $D >> /tmp/ldd.lst
done
rm /tmp/ldd.lst