Use Fetion to send free text messages under linux Command Line

Source: Internet
Author: User
In the linux Command Line, use Fetion to send a free text message-Linux Enterprise Application-Linux server application information. The following is a detailed description. Recently, I am working on the company's server network monitoring. To achieve real-time monitoring, you need to send text messages to your mobile phone. Find an Apsara stack tool under linux Command Line on the Internet. To use nagios for monitoring. The server can send a text message to the mobile phone in any situation. This is very convenient for system administrators. I have successfully tested in Debian and Ubuntu. The following describes how to install Apsara In the debian system.

1. First, the mobile phone needs to activate China Mobile's Feixin business. Currently, Apsara SMS is free of charge.

2. Download the linux client program of Apsara. After the package is unwrapped, there is only one file sms. Good. This is the Program for sending text messages from Apsara. Currently, Feixin cannot be used. Because it requires support from the glibc library of libace.

3. Install the environment required by Apsara. It is easy to install In Debian. Because flying needs Glibc2.4 or later versions. Set the Dbian system source to tesing (the Ubuntu source is generally newer, so you do not need to set it ).

Apt-get update
Apt-get upgrade
Apt-get install libace-dev libace-ssl-dev libc6

4. After the installation is complete, you can use sms to send free text messages.

Sending method:
Usage:
Sms-f mobile-p pwd-t mobile1,...-m message-a message-d
Sms-f mobile-p pwd-t mobile1,...-I file_name [utf8]-a invite_message-d 1
-F: Fetion mobile account (only supports mobile phone No .)
-P: Account password
-T: Destination mobile list
-M: Message
-I: File name (only supports utf8)
-A: Auto send invite using invite_message.
-D: Debug on.

Example:
Your Apsara account is 13761592001
Your Feixin password is: pwd12345
The mobile phone you want to send is: 13761592002 13761592003
The message to be sent is: Hello, Feixin
Use
Sms-f 13761592001-p pwd12345-t 1376159di-13761592003-m hello, fetion

If the message you want to send is in a text file, for example, a.txt
Sms-f 13761592001-p pwd12345-t 1376159di-13761592003-I a.txt

If 1376159di-13761592003 is in your friend list, it will be sent successfully.

If it is not in the friend list, it cannot be sent successfully. If you want the program to automatically invite them to join, use the-a parameter.

Sms-f 13761592001-p pwd12345-t 1376159di-13761592003-m hello, fetion-a UBUNTU

In this way, the recipient will receive a confirmation text message sent by mobile.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.