https://www.cnblogs.com/irockcode/p/6619049.html
比如:
sh yourcommand.sh > info.out 2> err.file
使用 > 将命令的stdout保存在info.out文件中,使用 2> 将stderr保存在err.file文件中。
https://www.cnblogs.com/irockcode/p/6619049.html
比如:
sh yourcommand.sh > info.out 2> err.file
使用 > 将命令的stdout保存在info.out文件中,使用 2> 将stderr保存在err.file文件中。