Skip to content
Snippets Groups Projects
Commit 7512f75e authored by Locatelli's avatar Locatelli
Browse files

add a tool for checking memory

parent b5acd127
Branches
No related tags found
No related merge requests found
#!/bin/bash
while true
do
PID=`pidof $1`
if [ -z "$PID" ]; then
break
fi
top -n 1 -p $PID | sed 1,7d
sleep 1
done
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment