标签: symfony1
我执行任务时有一条很长的错误消息。为了节省 输出我在写
任务> foo.txt的
但是当我打开foo.txt时,错误消息就不存在了。
有什么想法吗?还有其他选择吗?
symfony 1.4 / propel
此致
Javi
答案 0 :(得分:4)
您只能重定向stdout流,并且还需要捕获stderr流。语法因您使用的shell而异。例如,在bash中 task &> foo.txt 将stderr和stdout重定向到foo.txt。
task &> foo.txt