Results 1 to 2 of 2

Thread: cron job help

  1. #1
    Join Date
    Nov 2012
    Location
    Colachel
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    cron job help

    Hi All

    I want to run the script on Tuesdays (On Dates Between 1-7 and 15-21) at 12:00 PM of every month.

    I have tried the below entry, but it is not working proper. Please help

    00 12 1-7,15-21 * TUE /root/script.sh

    Thanks in Advance
    Sahab




  2. #2
    Join Date
    Oct 2012
    Location
    Minsk, Belarus
    Posts
    15
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Rep Power
    0
    Code:
    00 12 1-7,15-21 * * test $(date +%u) -eq 2 && /root/script.sh

 

 

Similar Threads

  1. What job can you have?
    By enhu in forum General Linux
    Replies: 4
    Last Post: 05-09-2012, 05:30 AM
  2. Need a Job? Learn Linux – TechCrunch
    By News in forum Linux News
    Replies: 0
    Last Post: 02-14-2012, 08:16 AM
  3. Want a Job? Learn Linux
    By News in forum Linux News
    Replies: 0
    Last Post: 02-11-2012, 11:17 AM
  4. kill job started in crontab
    By rkoziol7 in forum Command Line
    Replies: 0
    Last Post: 02-10-2012, 04:11 PM
  5. Italian Job
    By Fred in forum Linux News
    Replies: 0
    Last Post: 11-25-2011, 07:52 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,570
Threads: 3,919
Posts: 9,440
Top Poster: Fred (1,486)
Welcome to our newest member, Kimani

» Links



Powered by vBadvanced CMPS