Statistics
| Branch: | Tag: | Revision:

dvbd / utils / playmovie @ 723fa73a

History | View | Annotate | Download (313 Bytes)

1
#!/bin/sh
2
PATH=$PATH:/home/jak/bin
3

    
4
trap "" TERM
5
killav >& /dev/null
6

    
7
cleanup()
8
{
9
    echo "Cleaning up..."
10
    kill %1
11
    exit 0
12
}
13
trap cleanup TERM
14
trap cleanup CHLD
15

    
16
echo "playing [$1]" >/tmp/bob
17
export DISPLAY=:0.0
18
export HOME=/home/jak
19
mplayer -fs -really-quiet "$1" </dev/null > /tmp/mplayer.log &
20
wait %1