Hi mate. thanks, but i have the exe its the script I am after...
something like:
but this errors...
root@kindle:us> chmod a+r /mnt/us/video.sh
root@kindle:us> /mnt/us/video.sh
/mnt/us/video.sh: line 3: syntax error: "(" unexpected
GNU nano 2.3.1 File: video.sh
Quote:
#!/bin/sh
fileroot=/mnt/us/opt/video
array=( $(ls $fileroot) )
n=0
for (item in ${array[@]})
do
menuitems="$menuitems $n ${item}"
let n+=1
done
dialog --title "Select a file" --menu \
"Choose one of the following or press to exit" \
14 40 6 $menuitems 2> /var/tmp/$$
if [ $? -gt 0 ]; then
rm -f /tmp/$$
clear
echo "Interrupted"
exit 0
fi
selection=${array[$(cat /var/tmp/$$)]}
sleep 1
zcat ./$selection.gmv.gz|/mnt/us/gmplay
|
Something like that. Im too tired Ill fix it tomorrow.
EDIT: No one wants it so I wont bother fixing it. Sold as seen. Caveat Emptor!
be careful not to put a huge list in /var/tmp !!! it will brick maybe. possibly swith that somewhere safer