Created
June 5, 2019 23:04
-
-
Save ryanwoodsmall/2d0c3008bb2bdf08cc3757c0dec2709b to your computer and use it in GitHub Desktop.
pid-wrap.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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