Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Programming/Scripts

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 18th November 2009, 13:44
nara_456 nara_456 is offline
Junior Member
 
Join Date: Jul 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.
Reply With Quote
Sponsored Links
  #2  
Old 19th November 2009, 21:58
id10t id10t is offline
Senior Member
 
Join Date: Nov 2008
Posts: 240
Thanks: 2
Thanked 22 Times in 22 Posts
Default

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.
__________________
I'm a very happy linode.com customer, I'm sure you will be too!
Reply With Quote
  #3  
Old 20th November 2009, 04:45
nara_456 nara_456 is offline
Junior Member
 
Join Date: Jul 2009
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Thank you, it works
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parrallel Port program triggers on Shutdown?? Tezux Programming/Scripts 0 14th July 2009 10:01
Java Printing Problems anw Installation/Configuration 2 16th April 2009 03:07
Monit on Debian Hans Tips/Tricks/Mods 2 6th October 2008 13:53
Monit & Munin SamTzu HOWTO-Related Questions 1 4th May 2008 18:03
PHP - Java Compile ToysunStory Installation/Configuration 9 4th January 2008 18:47


All times are GMT +2. The time now is 10:38.


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