Advertisement
freezmi

queues, what queues?

Jan 17th, 2022
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. grep_symbols()
  2. {
  3.     found=$(nm "$1" 2>/dev/null | grep -E '([ ]msgsnd)|([ ]msgrcv)|([ ]mq_send)|([ ]mq_receive)' )
  4.     [ -n "${found}" ] && echo -e "\n$1 : '$found'"
  5. }
  6.  
  7. export -f grep_symbols
  8.  
  9. for loc in ${PATH//:/ } /lib /lib64 /usr/lib /usr/lib64; do
  10.     find "${loc}" -type f | while read file; do
  11.         grep_symbols "${file}"
  12.     done
  13. done
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement