Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8841013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:36:20+00:00 2026-06-14T10:36:20+00:00

I have a few cron jobs at server machine scheduled to do few things.

  • 0

I have a few cron jobs at server machine scheduled to do few things. I want to let user modify those cron jobs using a web application (jsp page). So lets say (example scenario) some job is scheduled to run at 2 PM, I want user the option to change its time.

It looked very trivial to start with, but now I am stuck. I am new to Linux. How to create cron jobs currently is : crontab – e ; and then I manually add new jobs as required. But I want to provide this capability to a remote user through a web interface.

Please help !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:36:22+00:00Added an answer on June 14, 2026 at 10:36 am

    Let’s say that your crontab has a following line:

    20 3 * * * /home/somebody/somescript.sh
    

    You can list your crontab using the following command:

    crontab -l
    

    Then you can change the scheduled time using the command sed:

    sed 's/20 3 \* \* \* \/home\/somebody\/somescript.sh/30 4 \* \* \* \/home\/somebody\/somescript.sh/'
    

    Finaly, you’ll commit it to crontab again by passing the new file to the crontab command.

    The result will be combination of the three commands discussed above and will be connected by pipes:

    crontab -l | sed 's/20 3 \* \* \* \/home\/somebody\/somescript.sh/30 4 \* \* \* \/home\/somebody\/somescript.sh/' | crontab
    

    The first command will list the current crontab to standard output. Then sed will replace the time and pass the replaced file to the crontab command, which will install it as a new crontab.

    Be aware though, that most servlets do not have sufficient system rights to create or modify crontab.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using play framework 1.2.4 with scala. I have few play jobs that looks like
I have rails3 application and want to check it every few hours (cron) verify
I have few bash scripts which are adding to cron jobs with specified timing,
I have cron jobs setup that runs a few PHP scripts often. The issue
I have few basic questions on session management in GWTP. Client : GWTP, Server
I have a few time-consuming and (potentially) memory-intensive functions in my LAMP web application.
I've been coding Magento sites using cron jobs to handle backups but it gets
I have a few files waiting to be processed by a daily cron job:
I have the following situation: I have set up a series of Cron jobs
I have two Google App Engine Models. I ran my cron's a few times

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.