On Sat, Dec 5, 2020 at 3:22 PM Michael Barnes <barnmich...@gmail.com> wrote: > > Anybody have any experience with mochad or netcat? > My project is using a Raspberry Pi Zero with an X-10 CM-19A transceiver to > control my Christmas lights from Alexa. > > There are two components to this. First is to install mochad to pipe > commands to the CM-19A. I got mochad installed and it seems to work. From > the command line or script, I do > > echo "rf A2 on" | nc localhost 1099 > Does nc localhost 1099 << EOF rf A2 on EOF work? Some netcats need more persuasion, but some way of feeding it an EOF is needed.
Bill _______________________________________________ PLUG: https://pdxlinux.org PLUG mailing list PLUG@pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug