Created
September 6, 2015 07:00
-
-
Save heartpunk/8476fdda389e50a5ec35 to your computer and use it in GitHub Desktop.
This file contains 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/zsh | |
echo "please enter your password to prime sudo" | |
sudo echo "thank you! " | |
repeat 50 open http://twitter.com | |
CHROME_PID=$(ps -o pid,ppid -p `pgrep -i chrome` | grep '[^0-9]1$' | awk '{print $1;}') | |
ps -o rss,vsz -p $CHROME_PID | |
sleep 15 | |
ps -o rss,vsz -p $CHROME_PID | |
kill $CHROME_PID | |
sleep 15 | |
ps -o rss,vsz -p $CHROME_PID | |
sudo kill -9 $CHROME_PID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment