[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 363
  • Last Modified:

Setting Unix Cronjob via user input in JSP Page

I would like to put the time parameter of unix cronjob as a field in JSP for users to define the job frequency as they wish, without me modifying the crontab manually.

Say, the user access a JSP page with the field "Time" and enter 0800 for a daily cronjob at the backend.

Any clues on how to handle such cases?
Pls advice.
Thanks a lot.
0
adeline
Asked:
adeline
1 Solution
 
sompol_kiatkamolchaiCommented:
You can open cron file in servlet and modify it.

or

You can use java.util.Time and java.util.Timer to do scheduler.

or

You can use an open-source job scheduler name Quartz

http://www.opensymphony.com/quartz
0
 
mark-bCommented:
Here is an open source project that does cron in Java:

http://jcrontab.sourceforge.net

-Mark
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now