How to send message via terminal in windows or linux?
How to send message via terminal in windows or linux?
|
That's a bit vague. To whom do you want to send the message? Is your recipient on a desktop pc?
|
As wideyes mentioned, this question is quite vague. Also, Windows and Linux work completely differently. (Please note, though, that this is a Linux-specific forum.)
In Linux, if you are attempting to broadcast a message out to all other users logged into a particular machine, you can do so with the "wall" command. Example: Code:
# wall Text of your message Sending messages to users in Windows is done through Task Manager. Task Manager has a tab called "Users" that will allow you to select a user who is currently logged in and send them a pop-up message by selecting the "Send Message" button at the bottom. Now... if you're talking about sending emails from the command line, that can be done easily if you already have a mail agent (like Sendmail) installed and configured. To send an email with Sendmail, you would do it as follows. Code:
# mail -s "Subject of email" recipient@theirdomain.com If you don't have Sendmail, Postfix, or whatever installed, you can also send an email by establishing a telnet connection to your mail server on port 25. Below is an example of me doing so through my ISP's mail server. (Email and IP addresses in output have been changed. The text in bold is what I typed.) Code:
[mike@myserver ~]$ telnet mail.charter.net 25 If none of this answers your question, you will need to be more specific as to exactly what it is that you are trying to do. |
Quote:
|
Quote:
Quote:
How about `write`? Did you try that? |
All times are GMT -5. The time now is 06:14 AM. |