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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scanning for log files and removing them.

Status
Not open for further replies.

franklinmount

Technical User
May 5, 2003
5
US
Can you tell me how I can write a script file where I can look in the /var directory for the log files and copy it to another server and than delete the contains of the log file. I would also like to check for any files larger than 200 mb in size in the /var directory.



We are using a Solaris 5.6, 3000 server and the file will be copied to probably a windows server for save keeping for a short time only. The sun server has limited space at this time.



Thanks,



Mario
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top