crontab does not get the log in log file

I have batch program and i do get some data from one server and update the data in my database and i want to trigger my batch program for every 15 mins. For that i use the crontab concept, i just open the crontab with the command

crontab -e

//i add the command in that crontab

15 * * * * /usr/bin/java -jar xxxxxx.jar >> /var/log/cron.log

finally after that my batch program is not running and i did not get log in cron.log. whether it will automatically run the batch program or we have to trigger it

  • Docker + SSL + apache2 + x509
  • Docker containers seem to 'inherit' the instance profile of the host ec2. How?
  • AWS ECS windows containers network mode issue
  • docker root crontab job not executing
  • Adding a backup crontab into a docker container
  • How to run cronjob in docker, and how to see the result?
  • Accessing Bluetooth dongle from inside Docker?
  • Couldn't connect to Docker daemon on Mac OS X
  • Solutions for a Multi-Tenant Platform using Django with Postgresql
  • docker build with --build-arg with multiple variables
  • Golang binary built inside Docker container, still Mach-O executable format?
  • Docker ubuntu image - bash: man: command not found
  • 2 Solutions collect form web for “crontab does not get the log in log file”

    The crontab isn’t running every 15 min; it’s running on the 15th of an hour. If you’d like it to run every 15 minutes of an hour, change the crontab to:

    0,15,30,45 * * * * /usr/bin/java -jar xxxxxx.jar >> /var/log/cron.log

    Your crontab entry will run the command at 15th minute of every hour. The command will run at 1:15, 2:15 and so on.

    To run the program every 15 minutes, please use the following line

    */15 * * * * /usr/bin/java -jar xxxxxx.jar > /var/log/cron.log

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.