linux - default: command not found -


im new linux when when im facing problem first choice search on google, in these couple days still got no results. when im run script on new instalation return "default: command not found". if im running script on machine run fine , playing videos scrolling text.

here's code:

#!/bin/bash  source /etc/atv.conf export display=:0  sleep 5  default $default &  while true;    sleep 1   now=$(date +"%t")    while read line       set -- "$line"     ifs="#";     declare -a array=($*)      if [ ${array[0]} == $now ];       duration=${array[1]}       filename=${array[2]}       filetype=${array[3]}        default $filetype $filename $duration &      fi   done < $playlist  done 

this script run video file exist playlist using mplayer on ubuntu dekstop 12.04 lts

what default @ "default $default &" line refer to? $default on file.conf

$default=screen 

for atv.conf

#atv configuration  #host host=/home/atv  #media media=cgk  #atv server server=192.168.50.37  #aeromedia server aeromedia=192.168.50.16  #program matv_tv,matv,tv program=matv_tv  #default tv|screen default=screen  #if screen default_file=$host/$media/tvp/22_screen_saver.mpg  #chn tv channel chn=38  #hw audio hardware 0,1,2,... hw=2  #media folder playlist=/home/atv/$media/$media.playlist media_tvp=$host/$media/tvp media_sb=$host/$media/sb media_tvc=$host/$media/tvc media_ds=$host/$media/ds media_default=$host/default_screen  #tvc res_tvc=1024x768 geo_tvc=0+0  #tvp res_tvp=1024x598 geo_tvp=0+0  #scrolling banner res_sb=1024x140 geo_sb=0+630  #tv res_tv=1024x768 geo_tv=0+0  #running text txt_geo=590 txt_size=26 


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -