initial commit
[ETG_Helmet] / SOFTWARE / OMEGA2 / receiver.sh
1 #/bin/bash
2
3 if [ "$TMPFS" == "" ]; then 
4         . "common.sh"
5 fi
6
7 echo $$ > $PID/$0
8
9
10 rm "$RECTMP" 2> /dev/null
11
12 while [ 1 ]; do
13
14         if [ ! -s "$RECTMP" ]; then 
15                 echo "listen" | myLog
16         #       nc -l -p 1234 -q 1 > "$RECTMP" < /dev/null
17                 nc -l -p 1234 > "$RECTMP" < /dev/null
18                 echo "recived" | myLog
19
20                 echo "$DEV_JINGLE|$RECTMP|$DEV_JINGLE_OUT" > $TMPFS/$message
21         fi
22
23         sleep 1
24 done 
Contact me: dev (at) shalnoff (dot) com
PGP fingerprint: A6B8 3B23 6013 F18A 0C71 198B 83D8 C64D 917A 5717