Answer the question
In order to leave comments, you need to log in
How to escape quotes in cron?
I need to run a certain model on time.
I do it like this:
57 14 * * * bash -l -c 'cd /home/app/project/pervichka/current/ && bundle exec rails runner -e production "Whenever.update_complexes('72,74,76')"' > /dev/null 2>&1
Whenever.update_complexes('72,74,76')
Whenever.update_complexes(\'72,74,76\')
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question