Coder Social home page Coder Social logo

Comments (6)

marceloabelda avatar marceloabelda commented on August 27, 2024

Try --file instead of --text

from debian-scripts.

D1Ck3n avatar D1Ck3n commented on August 27, 2024

i tried but i'm getting an error:

[Info] Using configuration file /etc/telegram-notify.conf
{"ok":false,"error_code":400,"description":"Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 41"}```

from debian-scripts.

marceloabelda avatar marceloabelda commented on August 27, 2024

first try with few characters

from debian-scripts.

D1Ck3n avatar D1Ck3n commented on August 27, 2024

what do you mean with few characters?

from debian-scripts.

NicolasBernaerts avatar NicolasBernaerts commented on August 27, 2024

It seems there is a problem with underscore character (openhab/openhab-addons#11691).
Do you have such character in your text ?

from debian-scripts.

D1Ck3n avatar D1Ck3n commented on August 27, 2024

ok i think i found the issue! i generate a log file with a simple script and the formatting of the print output seems to cause problems:

#!/usr/bin/env bash

declare -a mydisks=( $(command ls -1 /dev/ | grep -Ei "^sd[a-z]*$") )

for d in ${mydisks[@]} ; do

ISTGUT=$(command smartctl -H /dev/${d} | grep PASSED | wc -l)
NICHTGUT=$(command smartctl -H /dev/${d} | grep -i failed | wc -l)

if (( ISTGUT != 0 )) ; then
printf " /dev/${d} : $(tput setaf 2)Good$(tput sgr 0)\n"
elif (( NICHTGUT != 0 )) ; then
printf " /dev/${d} : $(tput setaf 1)Replace$(tput sgr 0)\n"
else
printf " /dev/${d} : $(tput setaf 3)Unknown$(tput sgr 0)\n"
fi


done


content of the generated file:

 /dev/sda : ^[[32mGood^[(B^[[0m
 /dev/sdb : ^[[32mGood^[(B^[[0m
 /dev/sdc : ^[[32mGood^[(B^[[0m
 /dev/sdd : ^[[32mGood^[(B^[[0m
 /dev/sde : ^[[32mGood^[(B^[[0m

with plain text it works fine!

from debian-scripts.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.