You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
size=$(du -h /volumes/replicas/"$(ls /volumes/replicas/ | head -n $i | tail -n 1)" | awk '{print $1}' | sed 's/G//g' | sed 's/\..*//g' )
if [[ $size -ge 90 ]]; then
echo "mail atılıyor"
printf "To:[email protected]\nFrom:[email protected]\nSubject: Volume Size Alarm.\n\n\n\n\n there is a volume that size is bigger than 90 Gi." > mail.txt