Solved

crontab hp-ux

Posted on 2004-08-30
3
1,770 Views
Last Modified: 2013-12-16
How would I setup a crontab entry to run a job every other Friday(bi-weekly)?  The only thing that I can come up with was 0   0   1,15   *   1   but that will not fit the situation because the cron job needs to run bi-weekly and not a set date in the month.

Thanks in advance.
0
Comment
Question by:dedean01
  • 2
3 Comments
 
LVL 20

Accepted Solution

by:
tfewster earned 125 total points
ID: 11934989
See http://www.experts-exchange.com/Operating_Systems/Unix/Q_20370553.html  - Essentially, you run the job every week, and it checks itself for the last time it ran. So the crontab entry would simply be:

0   0   *   *   5   /path/to/script
0
 
LVL 20

Expert Comment

by:tfewster
ID: 11935027
Incidentally:
0   0   1,15   *   1  
would run the job on the first, the fifteenth AND every Monday
0
 

Author Comment

by:dedean01
ID: 11935455
Yes, thanks for the quick response, I was able to implement the script immediately.  I knew I had a typo but I didn't think  it would  impact the understanding of my question.

Once again thanks.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

831 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