• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

scheduling java program in unix evironment

 
Karthikean Konangi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I had written a Java class with main method. now i need to schedule this program daily basis. for that , I guess i need a shell script. But i donot know how to write it and configure it.

Please help me.
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The script could be as simple as:



You may need to provide the complete path to the java executable, something like /usr/bin/java.

For scheduling to run it periodically you'd need the cron utility. Type man cron on the command line, or google for an introduction about it.
[ March 18, 2008: Message edited by: Ulf Dittmer ]
 
Karthikean Konangi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic