View Single Post
Old 08-26-2012, 08:30 PM   #177
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
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

Last edited by twobob; 08-27-2012 at 06:29 AM. Reason: var tmp warning
twobob is offline   Reply With Quote