To execute java program using Cronjob

Discussion in 'Programming/Scripts' started by nara_456, Nov 18, 2009.

  1. nara_456

    nara_456 New Member

    Hi All

    I have developed smal JAVA program which having a insert record
    statement into MYSQL, it is Working fine.

    I need to execute this java program using cronjob.
    Can, any body helpme out how to do it.

    Thanks in Advance.
  2. id10t

    id10t Member

    First, check the syntax for the crontab with "man crontab"

    Then, write a small shell script that runs your java program, and call the shell script with cron.
  3. nara_456

    nara_456 New Member

    Thank you, it works

Share This Page