Return to BSD News archive
Newsgroups: comp.os.386bsd.apps
Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!howland.reston.ans.net!pipex!uunet!psinntp!newstand.syr.edu!rodan.syr.edu!smcarey
From: smcarey@rodan.syr.edu (Shawn M Carey)
Subject: quick hack to look like "ldd"
Message-ID: <1993Oct3.214457.25732@newstand.syr.edu>
Organization: Syracuse University, Syracuse, NY
Date: Sun, 3 Oct 93 21:44:57 EDT
Lines: 28
Here is a script I made a while ago when I started using shared libs
under 386bsd. It isn't very fast (usually takes a second or 5 on
my 386 25mhz).
#!/bin/csh -f
foreach prog ( $* )
if ( -e $prog ) then
if ( -x $prog && ! -d $prog ) then
set libs = `strings $prog | grep /shlib/`
if ( $#libs != 0 ) then
foreach lib ( $libs )
echo "$prog -> $lib"
end
else
echo "$prog is static."
endif
else
echo "$prog is not executable."
endif
else
echo "$prog not found."
endif
end
-Shawn Carey