Created
May 25, 2015 14:07
-
-
Save corpix/9dcdaa59247128e1642d to your computer and use it in GitHub Desktop.
Useful for ploting
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
rm -rf node-instances | |
while true; do | |
x="$(ps aux | grep $USER | grep node | grep -v grep)"; | |
d="$(date +%s)" | |
[ ! -z "$x" ] && echo "$x" | perl -p -i -e "s/^/$d /g" >> node-instances | |
sleep 0.1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment