Link to home
Start Free TrialLog in
Avatar of assistunix
assistunixFlag for United States of America

asked on

Need assistance understanding reading unix script

Hello,
For AIX.
I need assistance in understanding this script
The following script has been created to prevent the file /var/adm/cron/log file size from getting too big, clearing up old info in it. But i would like to understand what each parameter and part of script means.?

/var/adm/cron/log {
        rotate 5
        daily
        size=4000k
        postrotate
                        #/usr/bin/kill -HUP syslogd
        endscript
        compresscmd=/usr/bin/gzip
        compress
        }


If i need to apply this script to contain the size of another file /var/login.log file, can i use the same parameters. as follows.

/var/login.log {
        rotate 5
        daily
        size=4000k
        postrotate
                        #/usr/bin/kill -HUP syslogd
        endscript
        compresscmd=/usr/bin/gzip
        compress
        }


SOLUTION
Avatar of sshah254
sshah254

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of assistunix

ASKER

Thanks All.

Actually the correct file name for new configuration file is /logs/extlogin.access. Would you happen to know if /logs/extlogin.access is part of AIX standard and if i need to add refresh -s syslod for it.

ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial