Monitoring with the R

Asked

Viewed 71 times

2

I have a monitoring script and would like to run it every five minutes, there is some function that does this?

for example:

função (meu_script, repetir= 5 minutos)

tried some functions with Sys.time() and proc.time() , but I didn’t get anything good.

1 answer

5


Instead of inserting the repetition time into your function, try using it with the function repeat. Example with 5 seconds interval:

repeat{
  função()
  Sys.sleep(5)
} 

Browser other questions tagged

You are not signed in. Login or sign up in order to post.