The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Log rotation script theninja Shell Programming and Scripting 2 01-08-2009 01:30 PM
log rotation mirusnet Shell Programming and Scripting 6 09-05-2008 04:06 AM
Documentation and books on Autosys Job Control Tool from Autosys gram77 UNIX for Advanced & Expert Users 0 11-10-2007 06:24 AM
Log rotation on HP-UX untamed HP-UX 3 10-01-2007 07:10 AM
What are tr.pid.rotation files? zackz UNIX for Advanced & Expert Users 3 01-23-2007 05:13 PM

Reply
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 06-10-2009
new2learn09 new2learn09 is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 12
log rotation and autosys

Hi, I current have many apps servers running and need to create a script to rotate logs daily, and then create an autosys job to delete logs that are older than 30 days. I was thrown into this and have no idea what to do, please help me get started, thanks!

-----Post Update-----

and i will most likely be using unix to do all this

-----Post Update-----

and i will most likely be using unix to do all this
  #2 (permalink)  
Old 06-10-2009
cfajohnson's Avatar
cfajohnson cfajohnson is offline Forum Advisor  
Shell programmer, author
  
 

Join Date: Mar 2007
Location: Toronto, Canada
Posts: 2,361

man logrotate
  #3 (permalink)  
Old 06-10-2009
new2learn09 new2learn09 is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 12
yeah.. i dont know what that means, i know what logrotate does but whats man
  #4 (permalink)  
Old 06-10-2009
cfajohnson's Avatar
cfajohnson cfajohnson is offline Forum Advisor  
Shell programmer, author
  
 

Join Date: Mar 2007
Location: Toronto, Canada
Posts: 2,361
Quote:
Originally Posted by new2learn09 View Post
yeah.. i dont know what that means, i know what logrotate does but whats man

At a command prompt, type:


Code:
man man

  #5 (permalink)  
Old 06-10-2009
new2learn09 new2learn09 is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 12
ok im in the bin folder of my jboss apps server, and i see no logrotate file of conf, do i set it up here or what?
  #6 (permalink)  
Old 06-10-2009
cfajohnson's Avatar
cfajohnson cfajohnson is offline Forum Advisor  
Shell programmer, author
  
 

Join Date: Mar 2007
Location: Toronto, Canada
Posts: 2,361

What does your logrotate man page say?

Have you looked in /etc, which is where the configuration files are usually kept?
  #7 (permalink)  
Old 07-06-2009
rakesh_pagadala rakesh_pagadala is offline
Registered User
  
 

Join Date: May 2009
Location: hyderabad
Posts: 20
in order to delete the log files we need to write a script which does that . When you say delete log files ( I am sure that is for EP log files EP stands for Event processor) . Once the script is done then you can go ahead and schedule the autosys job . I would help you to schedule the autosys job but before that you need to write a script which delete the EPlog files older than 30 days.

Please share if you would recieve any road block during writing of script
Reply

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 05:12 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