In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Linux system mail command how to use, the article is very detailed, has a certain reference value, interested friends must read it!
In the Linux system, the mail command can send mail, which is very useful for system managers, such as monitoring the temperature of the system, alarming when the temperature reaches a certain level, sending an alarm message to the mailbox to remind the administrator that the temperature is abnormal.
Send mail directly using mail
Mail-s "Hello emailpower.cn" example@example.com hello, example message. The-s in the first line represents the subject of the message, while the following example@example.com is the recipient of the message. After entering the first line of command, type enter, which will enter the writing of the body of the message. Press CTRL + D to end the input of the body after the input is completed. At this point, you will be prompted that the CC address is the CC address. If there is no CC address, press enter directly to complete the sending.
Send mail using pipe and mail
Echo "hello, example message." | mail-s "Hello emailpower.cn" after example@example.comecho | the former is the body of the message. Press enter to complete the delivery.
Send mail using files and mail
After mail-s "Hello emailpower.cn" example@example.com uses the above command, we can send the contents of the mail.txt file to example@example.com as the contents of the message. If you want to send mail using mail under centos, you must first make sure that your Postfix or Sendmail is installed and running, and that you must be connected to the external network.
The above is all the contents of this article entitled "how to use mail commands in Linux system". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.