HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Programming/Scripts (http://www.howtoforge.com/forums/forumdisplay.php?f=7)
-   -   To execute java program using Cronjob (http://www.howtoforge.com/forums/showthread.php?t=41120)

nara_456 18th November 2009 13:44

To execute java program using Cronjob
 
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.

id10t 19th November 2009 21:58

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.

nara_456 20th November 2009 04:45

Thank you, it works


All times are GMT +2. The time now is 11:58.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.