Tag: redirect

  • How to redirect stdout and stderr to log file

    How to redirect stdout and stderr to log file

    วิธีการ redirect standard output และ standard error ไปเก็บไว้ยัง log file การ redirect stdout and stderr ไปยัง log file ที่ถูกต้อง command > /path/to/log 2>&1 ระบบจะทำการ redirect stdout ไปยัง log file และพร้อมกับ…