Displaying 2 results from an estimated 2 matches for "dbscript".
Did you mean:
vbscript
2009 Dec 30
2
capturing stdout
I'm wondering if anyone knows of a way to capture system messages, for
instance when I do the following:
> system("../DBScripts/getEODData.sh")
.//LSE_20091230.txt: 154.80 kB 207.24
kB/s
./Fundamentals//LSE.txt: 420.58 kB 301.47
kB/s
./Fundamentals//MLSE.txt: 3.42 kB 16.20
kB/s
Remote host has closed the connection.
ncft...
2009 Dec 30
1
seg-fault... but on what
...ges"), TRUE))
{ cat(msg, file = stderr())
.Internal(printDeferredWarnings()) } invisible(structure(msg, class =
"try-error"))})
16: try(dbGetQuery(con, sql))
17: eval.with.vis(expr, envir, enclos)
18: eval.with.vis(ei, envir)
19: source("~/SoothSayer/EODData/DBScripts/loadEODQuotes.r")
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Selection:
The code is pretty simple...
library(RMySQL)
drv <- dbDriver("MySQL")
con <- dbConnect(drv, host="local...