test3.sh (403B)
1 #!/bin/sh 2 3 export LTKDDIR=".ltkd" 4 export LTKDIR="../../config.example" 5 ltk_id=`../../src/ltkd/ltkd -t "Cool Window"` 6 #if [ $? -ne 0 ]; then 7 # echo "Unable to start ltkd." >&2 8 # exit 1 9 #fi 10 11 cat test3.gui | ../../src/ltkd/ltkc $ltk_id | while read cmd 12 do 13 case "$cmd" in 14 *"event btn1 button press") 15 echo "quit" 16 ;; 17 *) 18 printf "client1: %s\n" "$cmd" >&2 19 ;; 20 esac 21 done | ../../src/ltkd/ltkc $ltk_id