aspose file tools*
The moose likes Java in General and the fly likes scheduling java program in unix evironment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "scheduling java program in unix evironment" Watch "scheduling java program in unix evironment" New topic
Author

scheduling java program in unix evironment

Karthikean Konangi
Greenhorn

Joined: Jan 31, 2008
Posts: 22
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.


Regards,
KonangiK
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42635
    
  65
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 ]

Ping & DNS - my free Android networking tools app
Karthikean Konangi
Greenhorn

Joined: Jan 31, 2008
Posts: 22
thanks a lot
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: scheduling java program in unix evironment