Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Script to gzip logfiles
Name: sunsysadm2003 Date: April 25, 2006 at 11:12:29 Pacific OS: Solaris 8 CPU/Ram: N/A Product: N/A
Comment:
I need some shell scripting help please. I have an environment whereby the application is performing log rotation automatically. I would like to gzip one month's worth of logs at a time for review and then have the oldest gzipped log archive deleted after say one or two months. The log files have the following format: TLG_env1_errorlog.2005-10-25 TLG_env1_errorlog.2005-10-26 TLG_env1_errorlog.2005-10-27 TLG_env1_errorlog.2005-10-28 ..... I have tried googling for a script since scripting is not my strong point. Any help would be appreciated.
Summary: Guys, I have written the script to achieve the goal, i dont see any error in the script but dont know why script does not execute properly... #!/usr/bin/ksh ### Running this script on host100 from the...
Summary: I need a script to send an e-mail to system admin when a Solaris 7 server reboot. Please send me a example script if anyone has the script available. Thank you for help ...