DoneVII Alvin & Gavin Personal Blog

shell log

以前写 shell 做 log 时都比较傻大黑粗,今天看到 Yii 的 Pull Request #2124 时发现他的写法不错

install_memcache > ~/memcache.log || ( echo "=== MEMCACHE BUILD FAILED ==="; cat ~/memcache.log )
comments powered by Disqus