int main(int argc, char **argv) { int i; system("rm ppi.dbs ; sqlite3 ppi.dbs \".read ppi_create.sql\""); wait(NULL);
/* open the database */ db_connect(); /* which calls sqlite3_open() */ system("echo what?"); wait(NULL); . . . } Works for me using Sqlite3.5.9. Ubuntu 7.10 on Intel. Chris Brown wrote: > Hi all > > I have an application written in C using Sqlite 3.5.9 on MontaVista Linux. > > I am required to call the 'system()' function from within my code to run > external programs. Under normal circumstances this works without problems. > However as soon as I have used Sqlite from within my code I am unable to > successfully call the 'system()' function at any point after that- the > function will hang indefinitely without returning a result. This will happen > even if I am just calling 'sqlite3_open' and 'sqlite3_close' to open and > close a database. I am not using Sqlite from the command line. I am currently > running as root. > > Can anyone offer any suggestions as to why this might be? > > Thanks Chris > _______________________________________________ > sqlite-users mailing list > sqlite-users@sqlite.org > http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users > > _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users