Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save corpix/9dcdaa59247128e1642d to your computer and use it in GitHub Desktop.
Save corpix/9dcdaa59247128e1642d to your computer and use it in GitHub Desktop.
Useful for ploting
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