linux shell重定向

来源:互联网 发布:php session cookie 编辑:程序博客网 时间:2024/05/22 16:03

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


如:

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


注:

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


0 1
原创粉丝点击