assistunix
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
}
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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.