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

  • How to launch my docker container automatically on ECS?
  • Is it possible to connect to a running docker container with Winscp?
  • How to build docker images on AWS EC2 Windows Server instance?
  • Connect to a VNC inside a docker which is on remote server
  • Can I setup a remote spark server inside docker so that I can communicate with it locally?
  • How to start 2 (or more) instances of Rocket.Chat using Docker Compose?
  • Setting insecure registry in docker-in-docker image docker daemon
  • Docker Ubuntu with nginx, php-fpm and s3fs but s3fs does not work
  • Install shipyard on existing docker swarm
  • Kubernetes - Persistent storage for PostgreSQL
  • specify max log json file size in docker compose
  • How to connect to mysql using ipv6 from wordpress
  • 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.