Entering edit mode
mauede@alice.it
▴
870
@mauedealiceit-3511
Last seen 10.2 years ago
I am running a script that extracts many long strings from remote data
bases.
Every now and then the remote data base gets out of sync and closes
the connection.
I have been adviced to implement an R script that queries the data
base in batch modality.
I never ran an R script in batch modality. I think I have to use R CMD
BATCH or something similar
Given the amount of data I am extracting, I am concerned about having
to parse a huge data file looking for the
informattion I need.
The less painful modification would consist in running the R script as
is but through a cron job. So that the script
should be set to sleep on an established frequency and when awakened
it should resume from where it was interrupted.
Is such a scheme doable in R ? If it is then what are the most
important commands to make a script sleep and wake up
on a regular basis ?
Thank you in advance,
Maura
tutti i telefonini TIM!
[[alternative HTML version deleted]]