use absolute paths for free + awk

causes conflicts when cwrapper installed
This commit is contained in:
Matt McCormick (thewtex) 2009-09-17 09:36:11 -05:00
parent 8de900a58d
commit b0ef6972bd

@ -1,9 +1,9 @@
#!/bin/sh #!/bin/sh
total_mem=$(free -m | awk '$1 == "Mem:" { print $2 }') total_mem=$(/usr/bin/free -m | /usr/bin/awk '$1 == "Mem:" { print $2 }')
while(true); do while(true); do
current_mem=$(free -m | awk '$1 == "-/+" { print $3 }') current_mem=$(/usr/bin/free -m | /usr/bin/awk '$1 == "-/+" { print $3 }')
echo "${current_mem}MB/${total_mem}MB" echo "${current_mem}MB/${total_mem}MB"
sleep 3 sleep 3
done done