#!/usr/bin/env bash if which mplayer &>/dev/null; then MPLAYER=$(which mplayer) else echo "Mplayer Not found." exit 1 fi $MPLAYER tv:///dev/video0 &>/dev/null