logrotation with date and time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Dear all Salam,

This is for all

  LOGFILE=/var/log/syslog
FILE="$LOGFILE.`date +%F.%H:%M:%S`.log"
it will store the log in date+time format


Regards,

Umair Shakil
ETD
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux