Sponsored Content
Full Discussion: Help with gammu script
Top Forums Shell Programming and Scripting Help with gammu script Post 302889326 by hawkfro12 on Thursday 20th of February 2014 02:46:14 AM
Old 02-20-2014
Quote:
Originally Posted by maverick72
You could do something like this:

Code:
while read f; do
echo "something, pls check" | gammu --sendsms TEXT $f
done <tel.txt

ty man, question, whats the meaning of the
Code:
<

? i dont understand exactly.

cheers
 
GAMMU-BACKUP(5) 						       Gammu							   GAMMU-BACKUP(5)

NAME
gammu-backup - gammu(1) backup file format. The backup format is text file encoded in either ASCII or UCS-2-BE encodings. This file use ini file syntax, see ini. EXAMPLES
If you will backup settings to Gammu text file, it will be possible to edit it. It's easy: many things in this file will be written double - once in Unicode, once in ASCII. When you will remove Unicode version Gammu will use ASCII on fBrestorefR (and you can easy edit ASCII text) and will convert it according to your OS locale. When will be available Unicode version of text, it will be used instead of ASCII (useful with Unicode phones - it isn't important, what locale is set in computer and no conversion Unicode -> ASCII and ASCII -> Unicode is done). You can use any editor with regular expressions function to edit backup text file. Examples of such editors can be vim or TextPad which both do support regular expressions. Remove info about voice tags Find: ^Entry([0-9][0-9])VoiceTag = (.*) Replace: <blank> Change all numbers starting from +3620, +3630, +3660, +3670 to +3620 Find: Type = NumberGeneral Entry([0-9][0-9])Text = "+36(20|30|60|70) Replace: Type = NumberMobile Entry1Text = "+3620 Change phone numbers type to mobile for numbers starting from +3620, +3630,... and removing the corresponding TextUnicode line Find: Type = NumberGeneral Entry([0-9][0-9])Text = "+36([2367]0)([^"]*)" Entry([0-9][0-9])TextUnicode = ([^ ]*) Replace: Type = NumberMobile Entry1Text = "+3623" See also converting-formats AUTHOR
Michal iha <michal@cihar.com> COPYRIGHT
2009-2012, Michal iha <michal@cihar.com> 1.31.90 February 24, 2012 GAMMU-BACKUP(5)
All times are GMT -4. The time now is 12:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy