Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我运行我的 shell 脚本时,每次运行它都会显示很多 java 错误处理消息。
由于我正在测试,我想要一个暂时不将其显示到屏幕上的选项。
有没有办法做到这一点?
我现在的方式是:
./load_data.sh TCOMPASS/Protocol >> load_semantic.log
重定向标准错误:
./load_data.sh TCOMPASS/Protocol >> load_semantic.log 2>/dev/null