Solved

Setting Unix Cronjob via user input in JSP Page

Posted on 2004-09-02
3
352 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
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 6

Expert Comment

by:CodingExperts
ID: 11962228
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
what is stuck threads? 3 96
Javascript onclick event 4 101
spring JDBC Template example error 26 162
eclipse luna javeEE perspecive missing 5 79
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
Is your company's data protection keeping pace with virtualization? Here are 7 dynamic ways to adapt to rapid breakthroughs in technology.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now