Solved

crontab hp-ux

Posted on 2004-08-30
3
1,766 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
Comment Utility
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
Comment Utility
Incidentally:
0   0   1,15   *   1  
would run the job on the first, the fifteenth AND every Monday
0
 

Author Comment

by:dedean01
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

762 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now