Thanks!!! It works!
source=`mysql --database=${DBName} --user=${DBUserName}
--password=${DBPassword} -sN -e "select sourceid from videosource
where name='sat'"`
Now I will continue configuring the mythfilldatabase script.
Best regards.
--
Josu Lazkano