Find the answer to your Linux question:
Results 1 to 4 of 4
Hello to everyone, im a newbie in the world of linux. I just want to know how can i send a message using terminal to another computer thats is connected ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2013
    Posts
    0

    Wink Newbie in linux


    Hello to everyone, im a newbie in the world of linux.

    I just want to know how can i send a message using terminal to another computer thats is connected to the network

    what commands/scripts will i use?


    Thanks.!

  2. #2
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    welcome aboard, kidDEV!

    you can do that with the talk client and related daemon.

    Note that you have to set up the daemon first (it is usually controlled by xinetd). you also have to probably disable your firewalls, if they're running - that or punch a hole for them (that is the preferred solution).

    then from linuxpc1, in a terminal where you are logged in as user1, do:

    Code:
    talk user2@linuxpc2
    on linuxpc2, in a terminal where user2 is logged in, you should see:

    Code:
    Message from Talk_Daemon@linuxpc2 at 22:56 ...  
    talk: connection requested by user1@linuxpc1.   
    talk: respond with:  talk user1@linuxpc1
    then simply type as instructed:
    Code:
    talk user1@linuxpc1
    a horizontally split display will open up inside the terminal of both PCs, where you can type in the top pane, and you see the other person's typed messages in the lower pane.

    note that the two computer names (linuxpc1, linuxpc2, etc.) must be resolvable to ip addresses.

    ***

    Now if by "message", you mean "email message", then use the mail program. it is also known as mailx/nail/heirloom mail, etc. just sure you are using the 12.x version and not the 8.x version. you'd use it like this:

    Code:
    echo "this is the body"|mail -s "the subject" user2@linuxpc2.example.com
    note that this requires an MTA to be set up on the pc first (i.e, postfix, sendmail, etc.). or if another SMTP server is available, you can pass it as an argument (this is where using the 12.x mail program is necessary), e.g.:

    Code:
    echo "this is the body"|mail -s "the subject" -S smtp=smtpserver.example.com user2@linuxpc2.example.com

  3. #3
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    Howdy and Welcome....
    But I gotta say, please don't use the GIANT font.
    It doesn't play well with the standard forum layout.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  4. #4
    Linux Engineer MASONTX's Avatar
    Join Date
    May 2010
    Location
    Mason Texas
    Posts
    934
    Welcome to the forum. Glad to have a new recruit.
    Registered Linux user #526930

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •