aspose file tools*
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 Soft Skills this week in the Jobs Discussion 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Building a cron trigger which execute every two weeks