Robert Johnston wrote:
On 01/08/05, Michael T. Dean <[EMAIL PROTECTED]> wrote:
# Prompt the user to insert the disc
xterm -bg NavyBlue -fg White +sb -fs 18 -geometry 40x6 \
-e prompt "Please insert ${MEDIA_TYPE}:" "${DISC_NAME}"
Out of interest, where's that "prompt" command coming from?
I don't seem to have it in Debian...
It's the other script, as described in
http://www.gossamer-threads.com/lists/mythtv/users/142951#142951 .
Keeping them together, this time, here is the updated (handles spaces)
prompt_for_media script and the prompt script again. (Also took the
movemouse script call out of prompt_for_media--forgot to take it out of
the updated version I posted. It's a script I wrote to "move the mouse"
after running external programs to work around a focus issue with myth
child windows. See
http://www.gossamer-threads.com/lists/mythtv/users/82722#82722 for details.)
All instructions for setting up and using these scripts and explanations
of how they work are in the original post:
http://www.gossamer-threads.com/lists/mythtv/users/142951#142951
Glad to see someone is interested enough to test this out.. :) I hope
you find it useful.
Mike
#!/bin/bash
MEDIA_TYPE=$1
FILE_NAME=$2
# Find the name of the disc
case "${MEDIA_TYPE}" in
DVD)
DISC_NAME=`basename "$FILE_NAME" .dvd`
;;
CD)
DISC_NAME=`basename "$FILE_NAME" .cd`
;;
VCD)
DISC_NAME=`basename "$FILE_NAME" .vcd`
;;
esac
# Prompt the user to insert the disc
xterm -bg NavyBlue -fg White +sb -fs 18 -geometry 40x6 \
-e prompt "Please insert ${MEDIA_TYPE}:" "${DISC_NAME}"
# Play the disc
case "${MEDIA_TYPE}" in
DVD)
xine --no-splash --auto-play=fhq --auto-scan dvd
;;
CD)
xine --no-splash --auto-play=fhq /mnt/cd
;;
VCD)
xine --no-splash --auto-play=fhq --auto-scan vcd
;;
esac
#!/bin/bash
MESSAGE=$1
MESSAGE2=$2
echo "${MESSAGE}"
echo
echo "${MESSAGE2}"
## Uncomment the for loop for a standard 80x24 terminal or use the
## xterm command line to customize the display for 5 or 6 lines
#for line in `seq 1 20`; do
echo
#done
read -n 1 -p "Press any key to continue."
_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users