Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

sceduling a task  RSS feed

 
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!