Skip to content

Instantly share code, notes, and snippets.

@ryanwoodsmall
Created June 5, 2019 23:04
Show Gist options
  • Save ryanwoodsmall/2d0c3008bb2bdf08cc3757c0dec2709b to your computer and use it in GitHub Desktop.
Save ryanwoodsmall/2d0c3008bb2bdf08cc3757c0dec2709b to your computer and use it in GitHub Desktop.
pid-wrap.sh
#!/bin/bash
echo "max pid is $(cat /proc/sys/kernel/pid_max)"
for i in {1..132000} ; do
if [ $((${i}%1000)) -eq 0 ] ; then
echo "${i} $(realpath /proc/self)"
else
realpath /proc/self >/dev/null 2>&1
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment