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