ns-tools

Namespace utilities to reuse Open Source packaging efforts.
git clone git://r-36.net/ns-tools
Log | Files | Refs | README | LICENSE

ns-lsof (170B)


      1 #!/bin/sh
      2 
      3 usage() {
      4 	printf "usage: %s ns\n" "$(basename $1)" >&2
      5 	exit 1
      6 }
      7 
      8 [ $# -lt 1 ] && usage $0
      9 
     10 nsroot="$(ns-root "$1")"
     11 [ $? -gt 0 ] && exit $?
     12 
     13 lsof "$nsroot"
     14