Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Created April 18, 2011 10:38
Show Gist options
  • Select an option

  • Save ongaeshi/925118 to your computer and use it in GitHub Desktop.

Select an option

Save ongaeshi/925118 to your computer and use it in GitHub Desktop.
DOSプロンプトから、標準出力もエラー出力もまとめてリダイレクトする方法

DOSの場合

標準出力をsystem.logにリダイレクト

command > system.log

標準出力と標準エラー出力をまとめてsystem.logにリダイレクト

command > system.log 2>&1

Unixの場合

標準出力をsystem.logにリダイレクト

command > system.log

標準出力と標準エラー出力をまとめてsystem.logにリダイレクト

command >& system.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment