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

Clash 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.
debian tty write
add a comment |Â
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.
debian tty write
add a comment |Â
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.
debian tty write
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.
debian tty write
asked Jun 22 at 10:10
Heir Of Knowledge
11
11
add a comment |Â
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
answered Jun 22 at 10:42
Jasen
1,925713
1,925713
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
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
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
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
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