A new problem!
when I give command, a connection between two RPis is established, and the planes picked by (raspi-1 + raspi-2) are shown on gmap.html of raspi-2, and all went well
pi@raspi-2 ~ $ socat -u TCP:raspi-1:30005 TCP:raspi-2:30004 &
pi@raspi-2 ~ $
Now I have tried to make the process automatic.
(1) In folder "/home/pi/" of raspi-2, placed a bash script "pi1-feeding-pi2-maint.sh" to start & maintain the socat:
socat -u TCP:raspi-1:30005 TCP:raspi-2:30004
(2) Made the bash file executeable by command:
sudo chmod 755 ./pi1-feeding-pi2-maint.sh
(3) Made the script automatic
sudo nano /etc/rc.local
#Inserted the following line just before the last line (exit 0) of rc.local file:
(4) Rebooted both raspi-1 & raspi-2 .
CONNECTION DID NOT ESTABLISH
When I tried to run the script manually, response negative
pi@raspi-2 ~ $ sudo ./pi1-feeding-pi2-maint.sh
./pi1-feeding-pi2-maint.sh: 7: ./pi1-feeding-pi2-maint.sh: Syntax error: end of file unexpected (expecting "do")
Any ideas what went wrong??