EXPLORE THE TOPIC

stderr.

2 บทความในหัวข้อนี้

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 fil

ezylinux2 นาที

How to redirect stderr and stdout to a file

การจัดการ output ใน linux ไม่ใช่เรื่องที่ไกลตัว เนื่องจากบ่อยครั้งที่เราจะเห็นคำสั่งต่างๆ มีการ redirect error และ output ไปยังไฟล์ เพื่อทำการจัดเก็บและสามารถนำไปตรวจสอบได้ภายหลัง โดยเฉพาะอย่างยิ่งคำส

ezylinux2 นาที