THE JOURNAL

Latest transmissions.

All entries ↗
  1. Installing node.js on Mac OS

    Node.js was installed at    /usr/local/bin/node npm was installed at    /usr/local/bin/npm Make sure that /usr/local/bin is in your $PATH.

    Read entry ↗
  2. GFDL MOIST CORE on SAVIO

    follow the dry core procedure, the first problem we meet is #error: unknown fpp directive. vi /global/home/groups/co_aiolos/models/spec_moist_idl_gfdl_model/src/shared...

    Read entry ↗
  3. 捕捉shell执行的状态码

    如果采用shell嵌套调用的方式执行一个复杂的自动化脚步,比如编译运行model,编译的过程很容易出错,那么外层脚本应考虑到这个问题并且在编译出错的情况下退出程序。这时上一条命令的状态码就派上用场了。 if [ $? -eq 0 ] [$? 就是上一条命令执行的状态码] then echo $i fi

    Read entry ↗