文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>command 2>&1 >logfile

command 2>&1 >logfile

时间:2006-06-02  来源:fjfd

command 2>&1 >logfile
command >logfile 2>&1
的区别:
Multiple output streams may be redirected to one file.
ls −yz >> command.log 2>&1
# Capture result of illegal options "yz" in file "command.log."
# Because stderr is redirected to the file,
#+ any error messages will also be there.
# Note, however, that the following does *not* give the same result.
ls −yz 2>&1 >> command.log
# Outputs an error message and does not write to file.
# If redirecting both stdout and stderr,
#+ the order of the commands makes a difference
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载