LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   regarding net send command in linux ......... (https://www.linuxquestions.org/questions/linux-newbie-8/regarding-net-send-command-in-linux-851313/)

aby 12-20-2010 01:38 AM

regarding net send command in linux .........
 
hi
every body

hope you will know the net send command of windows.

in the same way we are working on linux red hat 5.0 we want to know the equivalent command of net send for linux if any body know then please tell us?

& we are here only when we not found on google so please do not give the suggestion of searching on google

thanks in advance.....

kirukan 12-20-2010 01:42 AM

Try with wall
Quote:

wall "message here"

catkin 12-20-2010 01:46 AM

The NET SEND command is described here. It's like the wall and write commands but can send to remote systems too.

aby 12-20-2010 02:10 AM

thanks for reply in advance...

aby 12-20-2010 02:30 AM

Quote:

Originally Posted by catkin (Post 4197423)
The NET SEND command is described here. It's like the wall and write commands but can send to remote systems too.

like net send we send message to other computer on local network of windows

& we want same for the linux

i.e. we need to send message from one red hat linux computer to other red hat linux computer on the local network


i tried wall & write but i dont know how to use ..

& heartly thanks for reply in advance...

vvim 04-14-2011 08:00 PM

Hello Aby,

both 'wall' and 'write' are commands that you can issue through a terminal. The best way to get information is to read the 'man'-pages. Open a terminal and type 'man wall' or 'man write' and you will get all the information that you need.

To make it easy, I can narrow it down here for you (but then you have to promise to adopt a kitten and name it after me!)

Open a terminal and use the command 'who' to see who's online:

Code:

wim@nerdypc:~$ who
wim      tty7        2011-04-15 00:28 (:0)
nerd    tty3        2011-04-14 13:46 (:0)
geek    tty2        2011-04-15 01:02 (:0)
wim      pts/0        2011-04-15 00:39 (:0.0)

You can see that I (wim) am both logged in through terminal 7, that I am also straight at the computer (pts/0), and that there are two other users ('nerd' and 'geek').

If I want to write something to 'nerd', then I just issue the command:

Code:

wim@nerdypc:~$ write nerd
and from then on, whatever I type will appear in nerd's terminal session. Every time I press 'enter', the string will be sent to nerd. To stop transmitting, press CTRL+D .

Nerd will have received something as follows:

Code:

nerd@nerdypc:~$ justinthemiddleofsomething.sh
Message from wim@nerdypc on pts/0 at 00:45 ...
Howdieharhar,
this is ye matey wim, how art thee?

EOF

.

Now, the command wall is to broadcast to all users currently logged in on a terminal session of the computer. So to broadcast (you might need to be superuser, depending on the user regulations), I do the following:

Code:

wim@nerdypc:~$ wall
And I can start typing whatever I want, just a short sentence or even a full poem if I'd like. The message won't be sent until I end it all by pressing (again) CTRL+D . Only then, both 'nerd' and 'geek' (and whomever has also logged in by now) will see the following on their screen:

Code:

geek@nerdypc:~$ justinthemiddleofsomething.sh
Broadcast Message from wim@nerdypc
  (/dev/pts/0) at 00:45 ...

Dear Serfs,

prepare to activate and take over ze vorld.


So, to re-cap: 'write' is to send a message to a single user and the message gets sent every time you press the 'enter' button. 'wall' is used for broadcasting and the complete message gets sent at once at the end.

Besides that, I used to know of the command 'talk' . The recipient has to issue a command as well to accept the talk-invitation and then you will be in some sort of inbuilt chat-system that takes up the whole screen, one user can (in realtime) type at the bottom, the other at the top-half.

Hope this helps. Kind greetings,

Wim


All times are GMT -5. The time now is 06:38 AM.