How find out dependences for a software?

elko elko at home.nl
Sat Mar 16 09:04:21 PST 2002


On Saturday 16 March 2002 17:46, Gerard Beekmans wrote:
> On Sat, Mar 16, 2002 at 11:42:53AM -0500, Gerard Beekmans wrote:
> > strace -q -e trace=execve -f -F -o procinfo.logfile
> > procinfo-install-script
>
> I forgot to add, the output of strace can contain a lot of duplicate lines.
> Say gcc may be run 10 times if there are 10 source files to compile, then
> as and ld are run 10 times too and so on. After strace run something like
> this:
>
> cat proinfo.logfile | grep -v "Child exited" | grep -v "ENOENT" | \
>         grep -v "execve resumed" | cut -f 2 -d "\"" | \
>         sort | uniq > procinfo.logfile.cleanedup

`egrep' or `grep -E' saves you some typing:

cat proinfo.logfile | grep -Ev "Child exited|ENOENT|execve resumed" | \
cut -f 2 -d "\"" | sort | uniq > procinfo.logfile.cleanedup

-- 
ElkOS: 6:01pm up 18 days, 19:23, 4 users, load average: 2.41, 2.28, 2.25
bofhX: static buildup

-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-support' in the subject header of the message



More information about the lfs-support mailing list