You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@iotdb.apache.org by 小明同学 <a....@foxmail.com> on 2019/06/28 02:34:44 UTC
a more general free-memory command
Hi all,
I fail to use the following command to free memory because the colon in the command does not match the colon used in the Chinese system.
> free -m | awk '/:/ {print $2;exit}'
I come out with a solution that matches the position instead of the colon:
> free -m| sed -n '2p' | awk '{print $2}'
I also find that similar commands are used in the IoTDB conf/iotdb-env.sh, so I suggest they be modified.
Hope you find this helpful.
Bests,
Zhengming Zhang
Re: a more general free-memory command
Posted by Jialin Qiao <qj...@mails.tsinghua.edu.cn>.
Hi,
Thanks! I will fix this according to your suggestion.
Best,
--
Jialin Qiao
School of Software, Tsinghua University
乔嘉林
清华大学 软件学院
> -----原始邮件-----
> 发件人: "小明同学" <a....@foxmail.com>
> 发送时间: 2019-06-28 10:34:44 (星期五)
> 收件人: dev <de...@iotdb.apache.org>
> 抄送:
> 主题: a more general free-memory command
>
> Hi all,
>
>
> I fail to use the following command to free memory because the colon in the command does not match the colon used in the Chinese system.
>
>
> > free -m | awk '/:/ {print $2;exit}'
>
>
> I come out with a solution that matches the position instead of the colon:
>
>
> > free -m| sed -n '2p' | awk '{print $2}'
>
>
> I also find that similar commands are used in the IoTDB conf/iotdb-env.sh, so I suggest they be modified.
>
>
> Hope you find this helpful.
>
>
> Bests,
> Zhengming Zhang