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

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章