Hello,
You can redirect stderr to /dev/null and you won't see any error
messages then. Also you can redirect it to some file and analyze it
later for some kinds of errors you want to process.
i did it now this way:
$command="/usr/bin/sqlite3 mydb.db \"select foo from bar;\" 2>&1";
$result=`$command`;
so i can count return-code and have error-message in $result
but my problem is now how to do this with sql-statements using multiple
lines with EOT
$command="/usr/bin/sqlite3 mydb.db <<EOT
.load /usr/lib/sqlite3/pcre.so
select foo from bar where a regexp b;
EOT";
i tried a lot in script or console but nothing was successful.
Is there any way to catch stderr in this situation?
Thanks,
Hajo
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users