How to read screen's named pipe?

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
For curiosity, I wanted to read a GNU screen session's named pipe.
$ screen -ls
There is a screen on:
59750.hello (Detached)
1 Socket in /var/run/screen/S-gergely.
And indeed there is a named pipe:
S-gergely $ ls -l
összesen 4
prw-------. 1 gergely gergely 0 nov 21 11.06 59750.hello
I tried to read it with tail -f, cat and other things to no avail.
Does (Detached) mean that there is no flux of data through this named pipe? Only when the screen is active?
UPDATE: it does not work even when that screen is active
Can I read the data with some standard Unix command-line tool?
command-line gnu-screen fifo
add a comment |
up vote
0
down vote
favorite
For curiosity, I wanted to read a GNU screen session's named pipe.
$ screen -ls
There is a screen on:
59750.hello (Detached)
1 Socket in /var/run/screen/S-gergely.
And indeed there is a named pipe:
S-gergely $ ls -l
összesen 4
prw-------. 1 gergely gergely 0 nov 21 11.06 59750.hello
I tried to read it with tail -f, cat and other things to no avail.
Does (Detached) mean that there is no flux of data through this named pipe? Only when the screen is active?
UPDATE: it does not work even when that screen is active
Can I read the data with some standard Unix command-line tool?
command-line gnu-screen fifo
You are assuming there something there to read. What if the other end of the pipe is in fact waiting to read instead. I believe it's a two way pipe used byscreento talk to its screen daemon process.
– Kusalananda
Nov 21 at 12:29
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
For curiosity, I wanted to read a GNU screen session's named pipe.
$ screen -ls
There is a screen on:
59750.hello (Detached)
1 Socket in /var/run/screen/S-gergely.
And indeed there is a named pipe:
S-gergely $ ls -l
összesen 4
prw-------. 1 gergely gergely 0 nov 21 11.06 59750.hello
I tried to read it with tail -f, cat and other things to no avail.
Does (Detached) mean that there is no flux of data through this named pipe? Only when the screen is active?
UPDATE: it does not work even when that screen is active
Can I read the data with some standard Unix command-line tool?
command-line gnu-screen fifo
For curiosity, I wanted to read a GNU screen session's named pipe.
$ screen -ls
There is a screen on:
59750.hello (Detached)
1 Socket in /var/run/screen/S-gergely.
And indeed there is a named pipe:
S-gergely $ ls -l
összesen 4
prw-------. 1 gergely gergely 0 nov 21 11.06 59750.hello
I tried to read it with tail -f, cat and other things to no avail.
Does (Detached) mean that there is no flux of data through this named pipe? Only when the screen is active?
UPDATE: it does not work even when that screen is active
Can I read the data with some standard Unix command-line tool?
command-line gnu-screen fifo
command-line gnu-screen fifo
edited Nov 21 at 10:35
asked Nov 21 at 10:19
Gergely
304313
304313
You are assuming there something there to read. What if the other end of the pipe is in fact waiting to read instead. I believe it's a two way pipe used byscreento talk to its screen daemon process.
– Kusalananda
Nov 21 at 12:29
add a comment |
You are assuming there something there to read. What if the other end of the pipe is in fact waiting to read instead. I believe it's a two way pipe used byscreento talk to its screen daemon process.
– Kusalananda
Nov 21 at 12:29
You are assuming there something there to read. What if the other end of the pipe is in fact waiting to read instead. I believe it's a two way pipe used by
screen to talk to its screen daemon process.– Kusalananda
Nov 21 at 12:29
You are assuming there something there to read. What if the other end of the pipe is in fact waiting to read instead. I believe it's a two way pipe used by
screen to talk to its screen daemon process.– Kusalananda
Nov 21 at 12:29
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
When data was read from pipe it was gone from pipe. I don't think that it's possible to have multiple readers which can read same data at same time. So when screen is attached, probably screen process read data before tail/cat that you use.
New contributor
IvanBayan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
When data was read from pipe it was gone from pipe. I don't think that it's possible to have multiple readers which can read same data at same time. So when screen is attached, probably screen process read data before tail/cat that you use.
New contributor
IvanBayan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
1
down vote
accepted
When data was read from pipe it was gone from pipe. I don't think that it's possible to have multiple readers which can read same data at same time. So when screen is attached, probably screen process read data before tail/cat that you use.
New contributor
IvanBayan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
When data was read from pipe it was gone from pipe. I don't think that it's possible to have multiple readers which can read same data at same time. So when screen is attached, probably screen process read data before tail/cat that you use.
New contributor
IvanBayan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
When data was read from pipe it was gone from pipe. I don't think that it's possible to have multiple readers which can read same data at same time. So when screen is attached, probably screen process read data before tail/cat that you use.
New contributor
IvanBayan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
IvanBayan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
answered Nov 21 at 12:10
IvanBayan
612
612
New contributor
IvanBayan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
IvanBayan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
IvanBayan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f483171%2fhow-to-read-screens-named-pipe%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You are assuming there something there to read. What if the other end of the pipe is in fact waiting to read instead. I believe it's a two way pipe used by
screento talk to its screen daemon process.– Kusalananda
Nov 21 at 12:29