hmm...
didn't the example scripts in the kixtart package contain something like this???
_________________________
!

download KiXnet