[Xastir] Pointers please
Dan Smith
dsmith at danplanet.com
Sun Oct 10 15:15:22 EDT 2010
> sudo mkiss -s 9600 -x 2 /dev/ttyUSB0
> sudo /usr/sbin/kissattach /dev/pts/3 2 172.1.1.1
> sudo /usr/sbin/kissattach /dev/pts/4 3 172.1.1.1
> sudo /usr/sbin/kissattach /dev/ttyS0 1 10.2.2.2
I have a patch pending to mkiss to make this easier (which I need to
finish). I the meantime:
PTYS=($(sudo mkiss -s 9600 -x 2 /dev/ttyUSB0 | tail -n 1))
sudo kissattach ${PTYS[0]} 2 172.1.1.1
sudo kissattach ${PTYS[1]} 3 172.1.1.1
You could do a for loop too, of course, but that would require more work
to properly handle your port numbers and IPs.
--
Dan Smith
dsmith#danplanet.com, s/#/@/
www.danplanet.com
KK7DS
More information about the Xastir
mailing list