The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Cron job -- to execute at every first Sunday of every month shanemcmahon UNIX for Dummies Questions & Answers 2 05-03-2007 11:34 PM
Getting week number of the month sbasetty Shell Programming and Scripting 21 11-06-2006 06:13 PM
Execute a script on 4 week of the month tbdo88 Shell Programming and Scripting 1 09-30-2006 12:08 PM
Getting week in month.??? Zak Shell Programming and Scripting 1 05-16-2005 12:51 PM
Cron to schedule 1st Wednesday of every Month?? bradtri Shell Programming and Scripting 5 10-20-2004 12:12 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 04-05-2006
Bhups Bhups is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 23
Question setting up cron job for month end week report

Hi all,

Needs your help in scheduling a cron job for the below mentioned requirement. Just let me know if anybody has a similar job running as mentioned below:

Month end reports - Report of all items created in a parent table that were created during the week.

Presently this report runs every saturday as part of cron

20 03 * * 6 $HOME/job/weekly_logs.sh > $HOME/log/weekly_logs.log

Requirement:

In case month end(30 or 31) falls any day other than Friday/Saturday, we might have to run adhoc report to get models created from last run Saturday till 31st.

We need to automate this adhoc running - From the last run date(saturday) till month end(we can run <1st of next month)

Regards,
Bhups
  #2 (permalink)  
Old 04-05-2006
d_swapneel14 d_swapneel14 is offline
Registered User
  
 

Join Date: Mar 2006
Location: Mumbai,India
Posts: 57
hi
i m not able to understand your requirement.
plz define it in detail
  #3 (permalink)  
Old 04-05-2006
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,121
cron job executing 'myJob.sh' to be ran on the LAST day of every month at 23:58 :
Code:
58 23 * * * [ `date +%d` -eq `echo \`cal\` | awk '{print $NF}'` ] && myJob.sh
  #4 (permalink)  
Old 04-07-2006
Bhups Bhups is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 23
thanks all:-)
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:07 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0