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.
- 11-28-2013 #1
- Join Date
- Nov 2013
Newbie in 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?
- 11-28-2013 #2
- Join Date
- May 2011
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:
Message from Talk_Daemon@linuxpc2 at 22:56 ... talk: connection requested by user1@linuxpc1. talk: respond with: talk user1@linuxpc1
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:
echo "this is the body"|mail -s "the subject" firstname.lastname@example.org
echo "this is the body"|mail -s "the subject" -S smtp=smtpserver.example.com email@example.com
- 11-28-2013 #3
- 11-29-2013 #4
Welcome to the forum. Glad to have a new recruit.Registered Linux user #526930