skip to Main Content

How to stop supervisor process with piped command – Telegram API

I want to send server logs to the telegram bot. Here's my supervisor config: [program:telegram-log-nginx] process_name=%(program_name)s_%(process_num)02d command=bash -c 'tail -f /var/log/nginx/error.log | /usr/share/telegram_log.sh nginx' autostart=true autorestart=true numprocs=1 When I stop supervisor supervisorctl stop telegram-log-nginx:* the process is still running: ps…

VIEW QUESTION

How to create list in shell using for loop – CentOS

I am trying to create a new array using for loop Images="alpine ubuntu centos" Image_tags="$(for i in $Images; do r_madoori1/$i done)" echo $Image_tags I am expecting Image_tags="r_madoori1/alpine r_madoori1/ubuntu r_madoori1/centos" instead i am getting below error ./shell.sh: line 7: r_madoori1/alpine: No…

VIEW QUESTION
Back To Top
Search