testimg.sh (496B)
1 #!/bin/sh 2 3 export LTKDIR="`pwd`/.ltk" 4 ltk_id=`./src/ltkd -t "Cool Window"` 5 #if [ $? -ne 0 ]; then 6 # echo "Unable to start ltkd." >&2 7 # exit 1 8 #fi 9 10 { 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.png \""; ./src/ltkc_img < ~/test.png; printf "\"\ngrid grd1 add img1 1 0 1 1 lrp\n"; } |./src/ltkc $ltk_id | while read cmd 11 do 12 printf "%s\n" "$cmd" >&2 13 done | ./src/ltkc $ltk_id