testimg.sh (570B)
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 { printf "grid grd1 create 2 1\ngrid grd1 set-row-weight 0 1\ngrid grd1 set-row-weight 1 1\ngrid grd1 set-column-weight 0 1\nset-root-widget grd1\nimage img1 create test.jpg \""; ../../src/ltkd/ltkc_img < ../ltk/test.jpg; printf "\"\ngrid grd1 add img1 1 0 1 1 lrp\n"; } |../../src/ltkd/ltkc $ltk_id | while read cmd 12 do 13 printf "%s\n" "$cmd" >&2 14 done | ../../src/ltkd/ltkc $ltk_id