У нас вы можете посмотреть бесплатно how to compress log file in wildfly 10 1 0 Final using Bash script или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
#bash #bashscripting #firstbash #howtocompressusingbash #cron #linux #ubuntu How to create first bash script for compress logger and run by cron Prerequisite 1. Your laptop using os ubuntu or other linux 2. Your Os already installed cron 3. verify your shell type (cat /etc/shells ) 4. where bash is located in your OS(which bash) what Functionality cron job? to automate routine tasks, like compress logger, backup data etc In this tutorial i will show you how to compress log file in wildfly-10.1.0.Final Let's jump right in 1. you already have server.log file in wildfly (my wildfly log in this path (/opt/wildfly-10.1.0.Final/standalone/log)) 2. create bash script to compress log file into gz 3. put bash script in this path(i put bash script in this path /data/bash) 4. give user permission to execute bash script(chmod +x compresslogger.sh) 5. create cron to run job every minute(to run bash script which previous created) run this command sudo crontab -e 6. add this code and save * * * * /data/bash/compresslogger.sh 2&1 | logger -t CRONLOGGER 7. check to makesure cron running.(grep CRON /var/log/syslog) you can customize cron to run job every day at midnight/every month etc Succeed, happy learning and happy sharing