linux shell重定向

时间:2014-09-23 16:29:14   收藏:0   阅读:216

将shell的错误输出重定向到标准输出,这样就可以记录脚本的出错信息。


如:

/root/test.sh >> test.log 2>&1


注:

linux先加载 /etc/rc.d/rc.local 后加载 /etc/profile


评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!