# максимальный размер файла (в мегабайтах) MAX_SIZE=100
find "$LOG_DIR" -type f -name "*.log" | while read -r log; do size=$(du -m "$log" | cut -f1) if (( size > MAX_SIZE )); then echo "⚠️ Лог $log превышает $MAX_SIZE MB (текущий размер: ${size}MB)" fi done
📌 Скрипт ищет все .log - файлы в каталоге /var/log и проверяет их размер. Если размер превышает указанный порог (например, 100MB), выводит предупреждение.
🔧 Можно добавить в cron, чтобы проверка выполнялась регулярно.
# максимальный размер файла (в мегабайтах) MAX_SIZE=100
find "$LOG_DIR" -type f -name "*.log" | while read -r log; do size=$(du -m "$log" | cut -f1) if (( size > MAX_SIZE )); then echo "⚠️ Лог $log превышает $MAX_SIZE MB (текущий размер: ${size}MB)" fi done
📌 Скрипт ищет все .log - файлы в каталоге /var/log и проверяет их размер. Если размер превышает указанный порог (например, 100MB), выводит предупреждение.
🔧 Можно добавить в cron, чтобы проверка выполнялась регулярно.
In handing down the sentence yesterday, deputy judge Peter Hui Shiu-keung of the district court said that even if Ng did not post the messages, he cannot shirk responsibility as the owner and administrator of such a big group for allowing these messages that incite illegal behaviors to exist. Telegram channels enable users to broadcast messages to multiple users simultaneously. Like on social media, users need to subscribe to your channel to get access to your content published by one or more administrators. On June 7, Perekopsky met with Brazilian President Jair Bolsonaro, an avid user of the platform. According to the firm's VP, the main subject of the meeting was "freedom of expression." Add the logo from your device. Adjust the visible area of your image. Congratulations! Now your Telegram channel has a face Click “Save”.! As of Thursday, the SUCK Channel had 34,146 subscribers, with only one message dated August 28, 2020. It was an announcement stating that police had removed all posts on the channel because its content “contravenes the laws of Hong Kong.”
from us