I want cron to be run in every 55 mins. I followed the link CronJob every 25 minutes
and my crontab command is
*/5 * * * * [ $(( $(date +%s) / 60 % 55 )) -eq 0 ] && wget http://localhost/sandbox/run-cron-job
but I am getting error message in file /var/mail/root
From root@shashikanth-912 Wed May 20 10:55:01 2015
Return-Path: <root@shashikanth-912>
X-Original-To: root
Delivered-To: root@shashikanth-912
Received: by shashikanth-912 (Postfix, from userid 0)
id DD3CE4006E; Wed, 20 May 2015 10:55:01 +0530 (IST)
From: root@shashikanth-912 (Cron Daemon)
To: root@shashikanth-912
Subject: Cron <root@shashikanth-912> [ $(( $(date +
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
Message-Id: <20150520052501.DD3CE4006E@shashikanth-912>
Date: Wed, 20 May 2015 10:55:01 +0530 (IST)
/bin/sh: 1: Syntax error: end of file unexpected (expecting ")")
How to fix this problem.
*/55 * * * * /path/to/command
– Joshua Terrill May 20 '15 at 05:48*/10
works ok because 60 is divisible by 10. It's not divisible by 55. – cjm May 20 '15 at 06:49