上传文件至 /

This commit is contained in:
xiaoshun 2024-05-30 20:46:53 +08:00
parent a2872bd67f
commit b8d802f54d
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
#!/usr/bin/bash
#
#by fuxiaoshun 4/1
time=`date +%F-%T`
a=`df -h | awk NR==6'{print $5}'`
if [ ${a%\%*} -ge 1 ];then
echo "$time告警/分区使用不足" >>/tmp/1.txt
else
echo "/分区内存足够"
fi