From e1b5e3ee247a0a601cd3d5117163ce95968059b6 Mon Sep 17 00:00:00 2001 From: Jijo Varghese Date: Wed, 16 Oct 2013 14:44:13 -0700 Subject: [PATCH] Update memstat.sh need to comment out that line. --- memstat.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/memstat.sh b/memstat.sh index 3d6927d..221ab7d 100644 --- a/memstat.sh +++ b/memstat.sh @@ -8,7 +8,7 @@ # Also make sure you install bc command. -Source : http://www.expertslogin.com/linux-shell-script/linux-memory-usage-program/ +#Source : http://www.expertslogin.com/linux-shell-script/linux-memory-usage-program/ # Make sure only root can run our script @@ -82,7 +82,7 @@ echo -n "${value} ${reg} " [[ -f /tmp/res3 ]] && rm -f /tmp/res3 -#if argument passed script will show statistic only for that pid, of not – we list all processes in /proc/ #and get statistic for all of them, all result we store in file /tmp/res +#if argument passed script will show statistic only for that pid, of not � we list all processes in /proc/ #and get statistic for all of them, all result we store in file /tmp/res if [ $# -eq 0 ] then pids=`ls /proc | grep -e [0-9] | grep -v [A-Za-z] `