Solved

Setting Unix Cronjob via user input in JSP Page

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
spring dependency injection using java config 2 91
console vs log file 16 83
iterator example remove 8 75
junit example issue 2 28
Original post  on Monitis Blog. Web performance monitoring is broken into two camps: passive and active. Passive monitoring is defined as looking at real-world historical performance by monitoring actual log-ins, site hits, clicks, requests for…
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…

730 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