BIG
shell script storage usage monitoring email sending
shell> vi ./monitor_df.sh
#!/bin/bash
df -h > /home/util/df_result.txt
TO_EMAIL="test@test.com"
SUBJECT="TEST SERVER HDD df result"
/bin/mail -r "test@test.com" -s "$SUBJECT" "$TO_EMAIL" < /home/util/df_result.txt
shell> chmod 701 ./monitor_df.sh
LIST
'!!...Linux' 카테고리의 다른 글
[Linux] rsync error - access denied from UNKNOWN - (0) | 2023.07.28 |
---|---|
[Linux] 디렉토리구조 ( tree ) 출력하여 확인하기 (0) | 2023.02.13 |
[Linux] shell script simple ssh connection sample code (0) | 2023.02.09 |
[Linux] shell script - bash - Loop statement sample code (0) | 2023.02.09 |
[Linux] Centos7 / iptables 설정 (0) | 2023.02.02 |