?
Solved

Setting Unix Cronjob via user input in JSP Page

Posted on 2004-09-02
3
Medium Priority
?
359 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 1500 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

777 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