Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script to delete file from tmp folder in aix

Status
Not open for further replies.

isaac1319

IS-IT--Management
Aug 26, 2010
1
US
Hi All..

i am very new to scripting and aix. i need help to write a script to delete tmp file in aix 5.3. The plan is to create one common script that will run on a regular basis. This script will read a configuration file, link to the appropriate servers, and remove the selected files.The format of the configuration file should be similar to the following:

SERVER PATH FILE RETENTION DAYS

It should Establish a loop to process one record at a time from the configuration file,ssh to the server change to the selected path, Log the files, file count, and file bytes that will be removed depending on the retention days,Remove the necessary files and The logging that must be done is as follows: date in CCYYMMDD format,time in HH:MM:SS format,server,path,file,total number of files removed per server,total number of bytes freed up per server,total number of file removed per job run,total number of bytes freed up per job run.

please help me with this any help will be appricated..

thank you,
isaac



 
Have you anything to show us you've started this project yourself?

The internet - allowing those who don't know what they're talking about to have their say.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top