#!/bin/sh
# /*
# *---------------------------------------------------------------
# *
# * sh_dll - Script to show information for shared objects
# *
# *---------------------------------------------------------------
# *
# * Copyright (c) 2011-2014, 2022 by cisco Systems, Inc.
# * All rights reserved.
# *
# *---------------------------------------------------------------
# */

# Check for existing pid 
if ps -p $1 > /dev/null
then
echo -e "Text address\t    Size\tLibrary name"
echo "--------------------------------------------"
pmap -d $1 | grep "r-x--" | grep 0000000000000000 | awk '{ $4=""; $5="";  print }'

else
echo "No such process"

fi


