How to use write command to send message to user in debian stretch

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












who command show that xyz user is on tty2.



$ who
xyz tty2 2018-06-22 08:18 (:0)


I trying send message to xyz using write xyz command. But it does not shows on terminal.



When I run tty command on xyz user terminal.



$ tty
/dev/pts/1


but write says user is not logged in on pts/1



$ write xyz pts/1
write: xyz is not logged in on pts/1


According to this reddit, in Debian Stretch Login session is usually on tty2.



So I think message is being sent to xyz user terminal, but since login session is open on that tty. It is not being displayed.



How can write message to opened terminal of xyz on debian stretch.







share|improve this question























    up vote
    0
    down vote

    favorite












    who command show that xyz user is on tty2.



    $ who
    xyz tty2 2018-06-22 08:18 (:0)


    I trying send message to xyz using write xyz command. But it does not shows on terminal.



    When I run tty command on xyz user terminal.



    $ tty
    /dev/pts/1


    but write says user is not logged in on pts/1



    $ write xyz pts/1
    write: xyz is not logged in on pts/1


    According to this reddit, in Debian Stretch Login session is usually on tty2.



    So I think message is being sent to xyz user terminal, but since login session is open on that tty. It is not being displayed.



    How can write message to opened terminal of xyz on debian stretch.







    share|improve this question





















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      who command show that xyz user is on tty2.



      $ who
      xyz tty2 2018-06-22 08:18 (:0)


      I trying send message to xyz using write xyz command. But it does not shows on terminal.



      When I run tty command on xyz user terminal.



      $ tty
      /dev/pts/1


      but write says user is not logged in on pts/1



      $ write xyz pts/1
      write: xyz is not logged in on pts/1


      According to this reddit, in Debian Stretch Login session is usually on tty2.



      So I think message is being sent to xyz user terminal, but since login session is open on that tty. It is not being displayed.



      How can write message to opened terminal of xyz on debian stretch.







      share|improve this question











      who command show that xyz user is on tty2.



      $ who
      xyz tty2 2018-06-22 08:18 (:0)


      I trying send message to xyz using write xyz command. But it does not shows on terminal.



      When I run tty command on xyz user terminal.



      $ tty
      /dev/pts/1


      but write says user is not logged in on pts/1



      $ write xyz pts/1
      write: xyz is not logged in on pts/1


      According to this reddit, in Debian Stretch Login session is usually on tty2.



      So I think message is being sent to xyz user terminal, but since login session is open on that tty. It is not being displayed.



      How can write message to opened terminal of xyz on debian stretch.









      share|improve this question










      share|improve this question




      share|improve this question









      asked Jun 22 at 10:10









      Heir Of Knowledge

      11




      11




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          write uses utmp to determine who is logged in. an x-terminal does not count as a log-in only a connection that was mediated by /bin/login (or similar)



          so ssh into localhost, get the new tty and try write again.






          share|improve this answer





















            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: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f451261%2fhow-to-use-write-command-to-send-message-to-user-in-debian-stretch%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            write uses utmp to determine who is logged in. an x-terminal does not count as a log-in only a connection that was mediated by /bin/login (or similar)



            so ssh into localhost, get the new tty and try write again.






            share|improve this answer

























              up vote
              0
              down vote













              write uses utmp to determine who is logged in. an x-terminal does not count as a log-in only a connection that was mediated by /bin/login (or similar)



              so ssh into localhost, get the new tty and try write again.






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                write uses utmp to determine who is logged in. an x-terminal does not count as a log-in only a connection that was mediated by /bin/login (or similar)



                so ssh into localhost, get the new tty and try write again.






                share|improve this answer













                write uses utmp to determine who is logged in. an x-terminal does not count as a log-in only a connection that was mediated by /bin/login (or similar)



                so ssh into localhost, get the new tty and try write again.







                share|improve this answer













                share|improve this answer



                share|improve this answer











                answered Jun 22 at 10:42









                Jasen

                1,925713




                1,925713






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f451261%2fhow-to-use-write-command-to-send-message-to-user-in-debian-stretch%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)