> 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
_______________________________________________
Xastir mailing list
[email protected]
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir

Reply via email to