Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sceduling a task

 
Tharaka Peiris
Greenhorn
Posts: 11
Eclipse IDE Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to schedule a back up of a sql table for a given start time... I have written the back up program and now i want to run it on the time user provided... lets say 4'o clock in the morning... How can I do that?
 
Siddhesh Deodhar
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use cron job on linux or Scheduled tasks on windows to run your program.
More cleaner approach would beto use java.util.Timer class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic