Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

130
Views
Can anyone help me with this crontab?

We want to download the stock price of Tesla every day, using the package "quantmod" in R. We managed to write the function that downloads the last available stock and store it in a database in SQL: indeed, if we run the function manually, we can see the table with the stock price of today. However, if we let it run alone with crontab, it doesn't work: we set it up on the 14th, and as of today, it only downloaded the price of the 18th. This is how we set up the crontab:

# m h dom mon dow user1 command

59 23 * * 1-5 /usr/bin/Rscript /home/project/daily.R

Anyone? I'm sure it's a stupid mistake but it doesn't work and I need it to work by the end of the week

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You can schedule cron jobs with package cronR.

library(cronR)

f <- "/home/project/daily.R"
cmd <- cron_rscript(f)
cmd <- cron_add(
  command = cmd,
  frequency = "59 23 * * 1-5"
)
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!