Solved

Setting Unix Cronjob via user input in JSP Page

Posted on 2004-09-02
3
358 Views
Last Modified: 2008-01-09
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
Comment
Question by:adeline
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 11

Accepted Solution

by:
sompol_kiatkamolchai earned 500 total points
ID: 11961563
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
 
LVL 7

Expert Comment

by:mark-b
ID: 11966970
Here is an open source project that does cron in Java:

http://jcrontab.sourceforge.net

-Mark
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
Make the most of your online learning experience.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question