summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/ncid/ncid-osd
diff options
context:
space:
mode:
Diffstat (limited to 'abs/mv-core/ncid/ncid-osd')
-rw-r--r--abs/mv-core/ncid/ncid-osd26
1 files changed, 26 insertions, 0 deletions
diff --git a/abs/mv-core/ncid/ncid-osd b/abs/mv-core/ncid/ncid-osd
new file mode 100644
index 0000000..e115561
--- /dev/null
+++ b/abs/mv-core/ncid/ncid-osd
@@ -0,0 +1,26 @@
+#!/bin/sh
+#set -x
+# most of this program is taken from nciduser by Mace Moneta
+# requires festival: http://www.cstr.ed.ac.uk/projects/festival
+
+# input is 4 lines obtained from ncid using the "-all" option
+# input: DATE\nTIME\nNUMBER\nNAME
+# ncid calls a external program with the "--call-prog" option
+# default program: /usr/share/ncid/ncid-page
+#
+# ncid usage examples:
+# ncid --all --call-prog
+# ncid --all --call-prog --program ncid-osd
+# ncid --no-gui --all --call-prog --program ncid-osd
+
+read CIDDATE
+read CIDTIME
+read CIDNMBR
+read CIDNAME
+#CIDNAME="test name"
+#CIDNMBR="(414) 282 5011"
+ConfigDir=/etc/ncid
+ConfigFile=$ConfigDir/ncidscript.conf
+info="$CIDNMBR $CIDNAME"
+osdClient.pl localhost 5000 "$info:::SYS"
+exit 0