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

  • Running Docker container randomly disappears on AWS EC2 Ubuntu
  • Strange behavior of celery workers in ecs docker container
  • What is the difference between running an application on ec2-server and running an application on top of docker on ec2-server?
  • Choosing the right AWS Services and software tools
  • Accessing RDS from within a Docker container not getting through security group?
  • Docker + SSL + apache2 + x509
  • Unable to install docker
  • PHP Application redirection cycle
  • Configuring external access to the GAE app under the google/cloud-sdk docker container
  • Create shared package cache folder for a Docker container
  • Docker - docker compose two branches - Updated
  • Jenkins Pipeline: Postman Test script fails with “connect ECONNREFUSED ip:port”
  • 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.