การใช้ screen เพื่อค้าง console เดิม ให้สามารถเรียกดู console output ได้ภายหลัง
Posted: 18 Sep 2020, 15:53
เข้าไปใน directory ที่ต้องการจะ run คำสั่ง
แล้ว
แล้ว run คำสั่งที่ต้องการ monitor console output
ใช้ keys
เพื่อ detach screen
. . .
เมื่อต้องการกลับมาดู console output
ให้ใช้คำสั่ง
แล้ว
Code: Select all
screen
ใช้ keys
Code: Select all
ctrl-a d
. . .
เมื่อต้องการกลับมาดู console output
ให้ใช้คำสั่ง
Code: Select all
screen -r