You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! Is it possible to run all existing (or selected) cron jobs with a command without having to edit their original timings? With cron_ls() I see all the cron jobs I have, but I don't find an easy way to those with a single command, without editing all cron jobs.
Something like this (over-simplified) would work:
cron_test <- function(){
temp <- cronR::cron_ls()
temp2 <- strsplit(temp, "\n")[[1]]
temp3 <- temp2[grepl(">>", temp2)]
cmnds <- gsub(" >>.*", "", gsub(".*/usr/local/lib64/R/bin/","",temp3)) #fix to match any case
invisible(lapply(cmnds, system))
}
The text was updated successfully, but these errors were encountered:
There is no such function implemented in the package.
Maybe such a function can be implemented if people use the default settings of cron_add or cron_rscript, but I'm not sure if such thing can be implemented for all use cases of the package.
Hi! Is it possible to run all existing (or selected) cron jobs with a command without having to edit their original timings? With
cron_ls()
I see all the cron jobs I have, but I don't find an easy way to those with a single command, without editing all cron jobs.Something like this (over-simplified) would work:
The text was updated successfully, but these errors were encountered: