📄 gsmpb.man
字号:
.\" -*- eval: (nroff-mode) -*-.de TQ.br.ns.TP \\$1...\" Like TP, but if specified indent is more than half.\" the current line-length - indent, use the default indent..de Tp.ie \\n(.$=0:((0\\$1)*2u>(\\n(.lu-\\n(.iu)) .TP.el .TP "\\$1"...TH GSMPB 8 "##DATE##" "gsmpb v##VERSION##".SH NAMEgsmpb \- GSM mobile phone phonebook manipulation program.SH SYNOPSIS.B gsmpb[ \fB-b\fP \fIbaudrate\fP ][ \fB--baudrate\fP \fIbaudrate\fP ][ \fB-c\fP ][ \fB--copy\fP ][ \fB-d\fP \fIdestination device or file\fP ][ \fB--destination\fP \fIdestination device or file\fP ][ \fB-h\fP ][ \fB--help\fP ][ \fB-i\fP ][ \fB--index\fP ][ \fB-I\fP \fIinit string\fP ][ \fB--init\fP \fIinit string\fP ][ \fB-p\fP \fIphonebook name\fP ][ \fB--phonebook\fP \fIphonebook name\fP ][ \fB-s\fP \fIsource device or file\fP ][ \fB--source\fP \fIsource device or file\fP ][ \fB-t\fP \fIcharacter set\fP ][ \fB--charset\fP \fIcharacter set\fP ][ \fB-v\fP ][ \fB--version\fP ][ \fB-V\fP ][ \fB--verbose\fP ][ \fB-X\fP ][ \fB--xonxoff\fP ][ \fB-y\fP ][ \fB--synchronize\fP ].PP.SH DESCRIPTION\fIgsmpb\fP can store or retrieve phonebook entries residing in a GSMmobile phone's phonebook to or from a file. A synchronization mode isalso available..PP\fIgsmpb\fP reads entries from the source which can be a mobile phone(if a serial device file is given) or a file (if a file name isgiven). The source is never modified. \fIgsmpb\fP writes phonebookentries to a destination file or device. Depending on the mode thesource is copied to the destination file, thus overwriting thedestination, or the destination is synchronized with regard to thesource which is the default (details see below)..PPIf "-" is given as the parameter for the \fB--source\fP or\fB--destination\fP options, the phonebook is read from standard input and/or written to standard output, respectively..PPPhonebook entries names are encoded using the GSM default alphabet inthe mobile phone, whereas they are stored using the Latin-1 encodingin phonebook files. When reading phonebook entries from a mobile phone entry names are converted from the GSM default to Latin-1. Charactersthat can not be converted to Latin-1 are encoded as character code172 (Latin-1 boolean "not"). When writing file-based phonebook entries to a mobile phone a conversion to the GSM default alphabet takesplace. Characters that can not be converted are encoded as GSM delta(code 16). If the default character set has been changed using the\fB--charset\fP option no conversion takes place..PPError messages are printed to the standard error output. If the programterminates on error the error code 1 is returned..PP.SH OPTIONS.TP .7i\fB-b\fP \fIbaudrate\fP, \fB--baudrate\fP \fIbaudrate\fPThe baud rate to use. The default baudrate is 38400..TP .7i\fB-c\fP, \fB--copy\fPThis causes the contents of the source to be copied to thedestination. After this operation the destination has exactly the same contents as the source..TP .7i\fB-d\fP \fIdestination\fP, \fB--destination\fP \fIdestination\fPThe destination device or file..TP .7i\fB-h\fP, \fB--help\fPPrints an option summary..TP .7i\fB-I\fP \fIinit string\fP, \fB--init\fP \fIinit string\fPInitialization string to send to the TA (default: "E0"). Note that thesequence "ATZ" is sent first..TP .7i\fB-i\fP, \fB--index\fPIf the index position is given, \fIgsmpb\fP preserves the assignmentof entries to memory slots in the mobile phone's phonebook. This canbe used to backup phonebook entries with their position into aphonebook file or to change the position of entries by editing aphonebook file and writing them back to the mobile phone.If this option is given the phonebook file used as the sourcemust contain indices for every entry. Additionally, these indices must be unique, ie. it is not allowed to assign one entry twice to aspecific position in the mobile phone's phonebook..TP .7i\fB-p\fP \fIphonebook\fP, \fB--phonebook\fP \fIphonebook\fPThe name of the phonebook to read from or write to. This is only usedfor device sources and destinations. Commonly available phonebooksare:.TP .3i.po +0.7i.ll 5.8i\fIFD\fPSIM fixdialling-phonebook.TP .3i\fILD\fPSIM last-dialling-phonebook.TP .3i\fIME\fPME phonebook.TP .3i\fIMT\fPcombined ME and SIM phonebook.TP .3i\fISM\fPSIM phonebook.TP .3i\fITA\fPTA phonebook.TP .7i.po -0.7i.ll 6.5i\fB-s\fP \fIsource\fP, \fB--source\fP \fIsource\fPThe source device or file..TP\fB-t\fP \fIcharacter set\fP, \fB--charset\fP \fIcharacter set\fPSet the character set to use for phonebook operations (default is theGSM default alphabet)..TP\fB-v\fP, \fB--version\fPPrints the program version..TP .7i\fB-V\fP, \fB--verbose\fPPrints out a detailed progress report..TP .7i\fB-X\fP, \fB--xonxoff\fPUses software handshaking (XON/XOFF) for accessing the device..TP .7i\fB-y\fP, \fB--synchronize\fPThis causes the contents of the source to be synchronized with thedestination (default). Synchronization in this context means:.TP .2i.po +0.7i.ll 5.8i\-If the source contains an entry with a name that does not exist in the destination this entry is added to the destination..TP .2i\-If the source contains an entry with a name that can also be found inthe destination, the entry in the destination is overwritten (ie. thetelephone number is updated). Exception: More then one entry with thename exists in the destination. In this case the new entry ist just added..TP .2i\-Entries in the destination that do not exist in the source aredeleted..PPNote that synchronization has the following properties that differfrom copying: This algorithm does not change the location of unchangedentries in the destination phonebook. The synchronization functionis not case-sensitive when comparing names..PP.po -0.7i.ll 6.5i.SH PHONEBOOK FILE FORMAT Phonebook entries are stored in phonebook files that are meant to behuman-readable and -editable. There is one phonebook entry per line,and each line has the format:.PP.nfindex|text|phone number.fi.PPThe fields have the following meanings:.TP .7i\fIindex\fPThe index of the entry which must be a positive number. The index mayalso be empty. Indices can be used in conjunction with the\fB--index\fP option to store the entry into a specific position inthe mobile phone..TP .7i\fItext\fPDescriptive text for the entry. The text may contain the specialcharacters '\\', '|', carriage return (ASCII code 13), or line feed(ASCII code 10). These must be written "\\\\", "\\|", "\\r", "\\n",respectively. The text should only contain characters that can beencoded using the GSM default alphabet (see comments above)..TP .7i\fIphone number\fPPhone numbers can only contains the digits 0-9 and the '+' sign. A '+' sign denotes an international number..PP.SH EXAMPLESThe following invocation of \fIgsmpb\fP synchronizes the mobile phone'sSIM phonebook with the file $HOME/.phonebook:.PP.nfgsmpb --synchronize -b 19200 -d /dev/mobilephone \\ -s $HOME/.phonebook -p "SM".fi.PP.SH AUTHORPeter Hofmann <software@pxh.de>.PP.SH BUGSReport bugs to software@pxh.de. Include a complete, self-containedexample that will allow the bug to be reproduced, and say whichversion of \fIgsmpb\fP you are using..PP.SH COPYRIGHTCopyright \(co 1999 Peter Hofmann.LP\fIgsmpb\fP is free software; you can redistribute it and/or modify it underthe terms of the GNU Library General Public License as published by the FreeSoftware Foundation; either version 2, or (at your option) any laterversion..LP\fIgsmpb\fP is distributed in the hope that it will be useful, but WITHOUT ANYWARRANTY; without even the implied warranty of MERCHANTABILITY orFITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public Licensefor more details..LPYou should have received a copy of the GNU Library General Public License alongwith \fIgsmpb\fP; see the file COPYING. If not, write to the Free SoftwareFoundation, 675 Mass Ave, Cambridge, MA 02139, USA..PP.SH "SEE ALSO".BR gsminfo(7),.BR gsmctl(1),.BR gsmsendsms(1),.BR gsmsmsd(8),.BR gsmsmsstore(1).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -