R/writeCrontab.R

writeCrontab <- function(crontab) {

  tf <- tempfile()

  fc <- file(tf)

  writeLines(crontab, fc)

  system(paste("crontab", tf))
  system(paste("rm", tf))

  close(fc)

}
ebailey78/crontabR documentation built on June 5, 2019, 7:27 a.m.