Artifact shell for APAR

# (date;rpm -qa)>"`hostname -s`_`date +%Y%m%d`.log"

this would help to generate a log file with format like : hkfs01_2001002.log with the output of date and rpm -qa

-------

# to check logwatch distribution email: /etc/log.d/logwatch.conf

 

 

 

你可能感兴趣的:(shell,职场,休闲,artifact,APAR)