LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-16-2009, 11:40 PM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
Need help with OTRS?


I need to set the cronjob for a report generated script. I want it to generate every last day of the month.Now some month have 28, 20 and 31 days.
How can I make it run accordingly.

Last edited by your_shadow03; 12-16-2009 at 11:54 PM.
 
Old 12-17-2009, 12:15 AM   #2
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
I read it through http://www.unix.com/unix-dummies-que...ek-report.html

And modified as shown below:
Code:
58 23 * * * [ `date +%d` -eq `echo \`cal\` | awk '{print $NF}'` ] && myJob.sh
Will this work?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OTRS Notifications makemorebeer Linux - Software 2 11-25-2008 09:11 AM
otrs? ajeetraina Linux - Server 0 03-17-2008 03:57 AM
OTRS problem asi.linux Linux - Enterprise 0 07-07-2007 09:57 AM
OTRS. Any experience? otrs.org seems down. pachakutek General 3 01-19-2007 04:22 PM
Otrs nalthen Linux - Software 0 01-31-2006 08:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration