Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

crontab hp-ux

Posted on 2004-08-30
3
Medium Priority
?
1,800 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 21

Accepted Solution

by:
tfewster earned 500 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 21

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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

670 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