Sending a message to a remote terminal
287
Solution 1
You can use the write
command to send messages to a specific user instead of to everybody. You can send them over the network using whatever login credentials you already have, usually over ssh like this: ssh youruse@hostname write username
to send username@hostname a message.
Solution 2
you can use nc for example
in receiving host type nc -l port_number
and in sending host type nc ip port_number
like
nc -l 3106
in receiving host and
nc 192.168.32.98 3106
in sending host for me that worked
Related videos on Youtube
Author by
user3064141
Updated on September 18, 2022Comments
-
user3064141 almost 2 years
I am trying to import an obj file into Blender. I was able to get it to rezoom so that I can see the object, but when I move it (rotate it) there is a cutting plane that is actively slicing through it so that I can't see the whole object. How do I fix that? Thanks.
-
womble almost 6 years"Terminal", not "TCP port".
-
mohamadali abasnejad almost 6 yearsbut you can see this message in your terminal
-
Eular almost 3 yearsthis opens up a connection to write message to the user, and I have to manually close the connection . How can I just open up a conncetion, send the message and close it. I want to write this inside a bash script
-
Caleb almost 3 years@Eular The same way you do for any STDIN stream in a shell. You can type a message and end it with CTRL-D, or pipe content to the command:
echo foo | ssh ...
.