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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to run a script as different user inside cronjob in solaris. csg_user SUN Solaris 11 12-15-2007 03:49 PM
help help cronjob problem with script bucci Shell Programming and Scripting 4 02-10-2007 01:38 AM
Shell script not running thru Cronjob gauravshrinivas Shell Programming and Scripting 8 11-03-2006 07:17 AM
Variables are not getting exported while running the script in cronjob csaha Shell Programming and Scripting 7 03-21-2006 01:32 PM
how to find Script file location inside script asami Shell Programming and Scripting 10 03-14-2006 09:57 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-30-2008
Registered User
 

Join Date: Aug 2007
Location: Bangalore
Posts: 288
cronjob inside the script

Hiii,

can nayone provide me the sample script which can do the following tasks---
Quote:
1) Utility will be run under sepecific owner.

2) This utility will clean files in $INTAS_INSTALL_DIR/envsw/logs. And following logs will be backed up or deleted.

All Log files and Core files

3) mt_clean -a<action> [-t <time>]* -L <backup location>

-a<action> - has two values "delete" or "backup”. If not specified by default "delete" action will*occur. If*"backup" option is given, files will be backed up on the location specified by the -L, -L is mandatory if back up option is specified.

-t<time>* - The time is given with the -t option and its default is 1am
A time of 'now' means to execute the cleanup operation now
A time of 'never' means that the cleanup operation should not be scheduled and any existing cleanup should be cancelled.

-L <backup location> -*this field is mandatory if backup action is selected.

Note: As middle tier process are running and not stopped while this utility is running, the utility should create an empty*file with same name which has deleted or backed up. Otherwise middle tier logs will not be generated until the middle tier process is restarted. Any core files will be backed up or deleted according to the action chosen.*
I will apperciate if anyone give me their valuable inputs.I guess this is not at all a big task for the experts in the forum so kindly help me out in this.
Reply With Quote
Forum Sponsor
  #2  
Old 01-31-2008
Registered User
 

Join Date: Aug 2007
Location: Bangalore
Posts: 288
Hi Experts,can you please look on my problem and provideme some solutions.this scriptis urgently required and will be a great help if anyone provide me that.

Thanks.
Reply With Quote
  #3  
Old 02-04-2008
Registered User
 

Join Date: Aug 2007
Location: Bangalore
Posts: 288
can nayone give me some help in this please.if the requirement is not clear then please let meknow.
Reply With Quote
  #4  
Old 02-04-2008
Moderator
 

Join Date: Feb 2007
Posts: 2,329
Quote:
Originally Posted by namishtiwari View Post
can nayone give me some help in this please.if the requirement is not clear then please let meknow.
Maybe it is but it sounds like a homework question, what have you done to attempt to solve this problem yourself?

Regards
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 06:46 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0