การใช้ screen เพื่อค้าง console เดิม ให้สามารถเรียกดู console output ได้ภายหลัง

Post Reply
brid.surapol
Posts: 174
Joined: 11 Apr 2013, 11:43

การใช้ screen เพื่อค้าง console เดิม ให้สามารถเรียกดู console output ได้ภายหลัง

Post by brid.surapol »

เข้าไปใน directory ที่ต้องการจะ run คำสั่ง

แล้ว

Code: Select all

screen
แล้ว run คำสั่งที่ต้องการ monitor console output
ใช้ keys

Code: Select all

ctrl-a d
เพื่อ detach screen


. . .

เมื่อต้องการกลับมาดู console output
ให้ใช้คำสั่ง

Code: Select all

screen -r
brid.surapol
Posts: 174
Joined: 11 Apr 2013, 11:43

Re: การใช้ screen เพื่อค้าง console เดิม ให้สามารถเรียกดู console output ได้ภายหลัง

Post by brid.surapol »

Code: Select all

tmux new -s #session_name
after ssh droped, or ssh end

Code: Select all

tmux attach -t #session_name

Code: Select all

tmux ls
Post Reply

Return to “การใช้งาน Linux”