> MEMORY=$(shell free | grep "Mem:" |awk '{print $2}')
这一行有点问题。$是make的特殊字符。$2给当作变量,传进去了。
改成MEMORY=$(shell free | grep "Mem:" |awk '{print $$2}')
--
Regards,
Tusooa
_____________________________________
< There's more than one way to do it. >
-------------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
--
ubuntu-zh mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh
- [Ubuntu-zh] MEMORY=$(shell free |grep "Mem:" | awk '... YunQiang Su
- Re: [Ubuntu-zh] [shlug] MEMORY=$(shell free |grep "M... YunQiang Su
- Re: [Ubuntu-zh] MEMORY=$(shell free |grep "Mem:"... Tusooa Zhu
