This code fragement will look for mplayer and will produce an error
message if it can't found and the message will also show the path
searched.  The code could be put at the top of  mplayer.sh before the
"app=".

I think another message with advice and exit should follow the echo in
the Then clause or could assign "app" with a specific  dir not on the
path(e.g. /usr/local/bin )


Code:
--------------------
    
  path_name=`which mplayer 2>&1`
  if [ $? -eq 1 ] ; then
  echo "Can't find mplayer: $path_name" >&2
  fi
  
--------------------


-- 
bpa
------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=22476

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/plugins

Reply via email to