sendsms.1
上传用户:eo_sii
上传日期:2007-01-05
资源大小:91k
文件大小:4k
- .TH SENDSMS 1 "Project SMSLink" "Les Ateliers du Heron" " -*- nroff -*-
- .SH NAME
- sendsms - a command-line client for sms_serv(1)
- .SH SYNOPSIS
- .B sendsms
- -d dest (-m message | -f msgfile) [-u user] [-s smsc] host
- .SH DESCRIPTION
- .B sendsms
- is the Unix command-line client for the
- .B SMSLink
- project. It accepts command-line parameters that define the message to
- be sent, and transmits them to the SMS server process running on the designated
- .BR host .
- .B sendsms
- was developped specifically for easy calling from shell scripts or similar
- situations.
- .PP
- This manual page
- will cover the functionalities and use of
- .BR sendsms .
- For installation and configuration instructions, please refer to the
- INSTALL document, provided in the sources directory.
- .SS OPTIONS
- .TP
- .I "-d dest"
- The GSM network address (i.e. phone number) of the mobile phone the message
- is to be sent to. Supported format is:
- .br
- [int. prefix - country code] area code - phone number
- .sp 1
- The international prefix can be either "+" or "00" (or any other value
- supported by the GSM network provider the server is subscribed to). Some
- separation characters can be used to beautify the number, but they are
- purely cosmetic and will be stripped by the server. Those characters
- are [./- ]. The pause character (',') is not supported. This parameter
- is required.
- .sp 1
- Regarding the international country code, don't forget that its necessity
- is to be considered respective to the SMS gateway location (the host this
- client program is connecting to), not the location where the client is run
- from. In case of doubt, please contact the SMS server administrator for your
- network.
- .sp 1
- Please always include the area code (even when sending to a destination in
- the same "area", i.e. on the same network). The number without the area code,
- though syntactically correct and accepted by the network, would never get
- delivered (at least, that's my experience with Proximus -- YMMV).
- .TP
- .I "-m message"
- The text of the message to be sent. Unless made up of a single word, it will
- have to be quoted for obvious reasons. Maximum length is 160 characters. A
- longer message will be truncated (the user will be warned about it), but the
- message will still be sent.
- .sp 1
- At the present time, only 7bit ASCII is supported for the message text.
- .sp 1
- Use one and only one of
- .B -m
- or
- .BR -f .
- .TP
- .I "-f msgfile"
- The name of a text file where the message to send is to be read from. This file
- can contain multiple lines of text (they will be concatenated), but its total
- length can't exceed 160 characters. A longer text will be truncated (the user
- will be warned about it), but the message will still be sent.
- .sp 1
- The special file '-' means that input will be read from stdin.
- .sp 1
- At the present time, only 7bit ASCII is supported for the message text.
- .sp 1
- Use one and only one of
- .B -m
- or
- .BR -f .
- .TP
- .I "-u user"
- The server module requires the user to identify himself for logging purposes.
- No authentication is performed on this info though. If this parameter is
- ommited,
- .B sendsms
- will send the Unix username of the current user. This parameter allows you to
- override this default behaviour (might be usefull in the case of automated
- sending). The parameter is optional.
- .TP
- .I "-s smsc"
- This optional parameter allows you to override the default Service Center
- stored in the GSM module SIM. This feature is probably usefull only for
- non-standard applications.
- .TP
- .I host
- The host name or IP address where the SMS gateway server process is running.
- By default, this server will be listening on TCP port 6701.
- .SH BUGS
- See the BUGS document, in the sources directory.
- .SH SEE ALSO
- .BR sms_serv "(1), " gsmdevices "(5), " gsmaccess "(5)"
- .PP
- The INSTALL and README documents in the sources tree.
- .SH COPYRIGHT
- SMSLink is (c) Les Ateliers du Heron, 1998 by Philippe Andersson
- <philippe_andersson@ste.scitex.com>. It has been originally written for
- Scitex Europe, S.A.
- .PP
- Part of the code is (c) Riccardo Facchetti.
- .PP
- The code also includes contributions from Philipp Klaus <pklaus@access.ch>.
- .PP
- SMSLink has been released to the public under the GNU GPL.