It's not a secret anymore!*
The moose likes Linux / UNIX and the fly likes Building a cron trigger which execute every two weeks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Building a cron trigger which execute every two weeks" Watch "Building a cron trigger which execute every two weeks" New topic
Author

Building a cron trigger which execute every two weeks

sivachithambaram Rangaraj
Greenhorn

Joined: Feb 10, 2010
Posts: 5
Can anyone help me out in building a cron trigger which execute every two weeks on some specified weekday...
Josh Stephens
Greenhorn

Joined: Feb 16, 2010
Posts: 8
try typing in


this will setup the crontab which is like scheduled tasks.

the normal cron has the following format

* * * * * /path/to/command

the first * is the minute 0 - 59
the second * is the hour 0 - 23
the third * is the Day of Month 1 - 31
the fourth * is the Month 1 - 12
the last * is the Day of Week 0 - 6 (Sunday = 0)

so an example using myscript.sh

0 0 1 * * /bin/myscript.sh

This would execute myscript.sh at midnight the first day of each month.
 
Consider Paul's rocket mass heater.
 
subject: Building a cron trigger which execute every two weeks
 
Similar Threads
calling servlet and PHP from oracle
Cron expression to run every two days from the current day
Is it possible to schedule a job with 2 different timings?
Calling a Java Program through CRONTAB
Calendar, recurring events how to store ?