On Mon, 12 Dec 2011, Alberto De La Torre wrote:
Hello
I have a problem scripting with sqlite3
<snip />
If I use the same line inside a bash script like:
TomaCampo=sqlite3
/Users/alberto/Documents/Casa/Domótica/Programas/cronizados/WeatherTracker/casa\
Database.sdb "select OutsideTemp from WXData where RecDateTime>='2011-12-07
21:22' and RecDateTime<='2011-12-07 21:27' and RecordType='R';"
To state the obvious....
TomaCampo=$(sqlite3 .....)
rather than
TomaCampo=sqlite3 ....
Eddy
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users