How to read screen's named pipe?

The name of the pictureThe name of the pictureThe name of the pictureClash 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?










share|improve this question























  • 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














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?










share|improve this question























  • 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












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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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















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










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.






share|improve this answer








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.

















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    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

























    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.






    share|improve this answer








    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.





















      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.






      share|improve this answer








      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.



















        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.






        share|improve this answer








        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.







        share|improve this answer








        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.









        share|improve this answer



        share|improve this answer






        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.



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            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





















































            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






            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)