V10/cmd/matlab/exec/setup

diary('xxx')
!tail -f xxx > /dev/tty1 &
!tail -f xxx > /dev/tty2 &