Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- grep_symbols()
- {
- found=$(nm "$1" 2>/dev/null | grep -E '([ ]msgsnd)|([ ]msgrcv)|([ ]mq_send)|([ ]mq_receive)' )
- [ -n "${found}" ] && echo -e "\n$1 : '$found'"
- }
- export -f grep_symbols
- for loc in ${PATH//:/ } /lib /lib64 /usr/lib /usr/lib64; do
- find "${loc}" -type f | while read file; do
- grep_symbols "${file}"
- done
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement