Skip to content

Instantly share code, notes, and snippets.

@fernandes
Created April 9, 2014 14:24
Show Gist options
  • Save fernandes/10276425 to your computer and use it in GitHub Desktop.
Save fernandes/10276425 to your computer and use it in GitHub Desktop.
Check processes that are using OpenSSL - useful to check what need to be restarted http://heartbleed.com/
#!/bin/bash
while read pid; do
ls -l /proc/${pid}/exe|awk -F" " '{print $11}'
done < <(lsof|egrep libssl|awk -F" " '{print $2'})|sort -d|uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment