Advanced "Screen"ing

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
I would like to ssh into a unix server and be able to have another person watch what I'm doing. I'm wondering if there is some way that maybe I could open a Screen session and then have the other person attach to this session as read-only? Or maybe tail some sort of file that would show everything going on in the Screen session?


I've also heard there is some way of saving everything that happens within a Screen session. Anybody know how this is done?
 

drag

Elite Member
Jul 4, 2002
8,708
0
0
Absolutely.

It's very simple.

Ever heard of a special type of file called a 'named pipe'?
http://en.wikipedia.org/wiki/Named_pipe

Well you use a command called 'script' along with a named pipe.
Script is a old command which you can use to record the output of shell sessions to a file. It's great for documentation and making scripts.

For this to work instead of using a regular file you send the output of the script command to a named pipe and have somebody watch it with the cat command. Then you use the -f switch to flush the buffer after each write, otherwise I suppose that the script output may not happen realtime.

mkfifo /tmp/watch
script -f /tmp/watch

then on a different terminal go:
cat /tmp/watch

Then the session will startup and you can start demonstrating.

Also script is good for training people so when they do assignments, or they need help, and such they can record what they did to a file.

 

M00T

Golden Member
Mar 12, 2000
1,214
1
0
That's very interesting Drag. I use VNC because I can see what the client/customer is typing and then correct the mistakes for them.
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
Originally posted by: drag
Absolutely.

It's very simple.

Ever heard of a special type of file called a 'named pipe'?
http://en.wikipedia.org/wiki/Named_pipe

Well you use a command called 'script' along with a named pipe.
Script is a old command which you can use to record the output of shell sessions to a file. It's great for documentation and making scripts.

For this to work instead of using a regular file you send the output of the script command to a named pipe and have somebody watch it with the cat command. Then you use the -f switch to flush the buffer after each write, otherwise I suppose that the script output may not happen realtime.

mkfifo /tmp/watch
script -f /tmp/watch

then on a different terminal go:
cat /tmp/watch

Then the session will startup and you can start demonstrating.

Also script is good for training people so when they do assignments, or they need help, and such they can record what they did to a file.

So I wouldn't use screen at all for that then? Cool, I'll give it a try.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |