tap: show pipename

This commit is contained in:
cinap_lenrek 2012-03-09 23:56:05 +01:00
parent ba9d8ec473
commit 7b36883234

View file

@ -14,11 +14,12 @@ fn otherqid {
fn traceqid { fn traceqid {
while(! ~ $#* 0){ while(! ~ $#* 0){
echo '['$2']' $1 echo '['$2']' $3 $1
tracepid `{grep -n `{otherqid $1} /proc/*/fd | sed 's!^/proc/([^/]+)/.*!\1!g'} \ tracepid `{grep -n `{otherqid $1} /proc/*/fd | sed 's!^/proc/([^/]+)/.*!\1!g'} \
| sed 's/^/ /g' | sed 's/^/ /g'
shift shift
shift shift
shift
} }
} }
@ -30,7 +31,7 @@ fn tracepid {
echo ' ...' echo ' ...'
case * case *
v=($1 $v) v=($1 $v)
traceqid `{awk '/\#\|\/data1?$/{q=substr($5,2);print q" "$1}' /proc/$1/fd} \ traceqid `{awk '/\|/{q=substr($5,2);print q" "$1" "$10}' /proc/$1/fd} \
| sed 's/^/ /g' | sed 's/^/ /g'
} }
shift shift