File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply 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: 35241
    
    7
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 ]

Android appsImageJ pluginsJava web charts
Karthikean Konangi
Greenhorn

Joined: Jan 31, 2008
Posts: 22
thanks a lot
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: scheduling java program in unix evironment
 
Similar Threads
Dx Ball Game
Variable access
Calling a Java Program through CRONTAB
Servlets MultiThreading
Get the UNIX process ID of the java program