diff options
author | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-10-27 14:50:33 +0100 |
---|---|---|
committer | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-10-27 14:50:33 +0100 |
commit | 67caf9d07c3ad05d66a6ded60440e125bd29191c (patch) | |
tree | 5ae3a1e4b23f7c3a7f9a855598bf7cb80f8398da | |
parent | 73ebf729fa15267ac77a0f304b383137f9a4474b (diff) |
Renamed smsparse.conf to blasms.conf
-rw-r--r-- | README | 5 | ||||
-rw-r--r-- | blasms.c | 10 | ||||
-rw-r--r-- | blasms.conf (renamed from smsparse.conf) | 0 |
3 files changed, 7 insertions, 8 deletions
@@ -2,7 +2,7 @@ Usage: blasms sender-number send-date SMS content should be passed using stdin. -smsparse.conf is the configuration file and should be in the format: +blasms.conf is the configuration file and should be in the format: default SYSTEM COMMANDS CMD1 SYSTEM COMMANDS CMD2 SYSTEM COMMANDS @@ -19,7 +19,7 @@ are available, allowing for text replacement. The macros available are: %d - replaced with the send-date %s - replaced with the SMS content -An example smsparse.conf might be: +An example blasms.conf might be: default echo \"SMS from %N at %d: %s\" LS ls %s @@ -31,4 +31,3 @@ Sender names are looked up in phonebook.conf, which should be in the format: An example phonebook.conf might be: +447777123456 John +447713987654 Bill - @@ -49,7 +49,7 @@ void setname(char* telnum) { fp = fopen("phonebook.conf", "r"); if (fp == NULL) { - printf("Error opening smsparse.conf.\n"); + printf("Error opening blasms.conf.\n"); return; } @@ -98,7 +98,7 @@ int main(int argc, char *argv[]) { "\n" "SMS content should be passed using stdin.\n" "\n" - "smsparse.conf is the configuration file and should be in the format:\n" + "blasms.conf is the configuration file and should be in the format:\n" " default SYSTEM COMMANDS\n" " CMD1 SYSTEM COMMANDS\n" " CMD2 SYSTEM COMMANDS\n" @@ -115,7 +115,7 @@ int main(int argc, char *argv[]) { " %%d - replaced with the send-date\n" " %%s - replaced with the SMS content\n" "\n" - "An example smsparse.conf might be:\n" + "An example blasms.conf might be:\n" " default echo \\\"SMS from %%N at %%d: %%s\\\"\n" " LS ls %%s\n" "\n" @@ -143,10 +143,10 @@ int main(int argc, char *argv[]) { printf("Contents : %s\n", sms); } - fp = fopen("smsparse.conf", "r"); + fp = fopen("blasms.conf", "r"); if (fp == NULL) { - printf("Error opening smsparse.conf.\n"); + printf("Error opening blasms.conf.\n"); return 1; } diff --git a/smsparse.conf b/blasms.conf index 5c9752e..5c9752e 100644 --- a/smsparse.conf +++ b/blasms.conf |