Replies: 2 comments
-
|
I solved it myself. <-It was wrong and not resolved |
Beta Was this translation helpful? Give feedback.
-
|
Sorry, but this didn't solve the problem. command D: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
My script for displaying syslog in color fails with an error. Can someone help me?
debian13 trixie
conky-std 1.22.1-1 amd64
Error (nothing displayed):
${color}${font Source Han Mono JP:style=Regular:size=9}${execpi 30 tail -n8 /var/log/syslog | sed 's/^.\{11\}\(.\{8\}\).\{17\}/\1/' | sed 's/\$/\$\$/g' | sed -e 's/.*ERROR.*/${color red}&${color}/Ig' -e 's/.*WARN.*/${color yellow}&${color}/Ig' -e 's/.*INFO.*/${color green}&${color}/Ig' | fold -w52 | sed 's/^/ \${voffset -3}/'}sh: 1: Syntax error: Unterminated quoted stringSuccess A (removing the final sed):
${color}${font Source Han Mono JP:style=Regular:size=9}${execpi 30 tail -n8 /var/log/syslog | sed 's/^.\{11\}\(.\{8\}\).\{17\}/\1/' | sed 's/\$/\$\$/g' | sed -e 's/.*ERROR.*/${color red}&${color}/Ig' -e 's/.*WARN.*/${color yellow}&${color}/Ig' -e 's/.*INFO.*/${color green}&${color}/Ig' | fold -w52}Success B (removing the $ sign sanitization):
${color}${font Source Han Mono JP:style=Regular:size=9}${execpi 30 tail -n8 /var/log/syslog | sed 's/^.\{11\}\(.\{8\}\).\{17\}/\1/' | sed -e 's/.*ERROR.*/${color red}&${color}/Ig' -e 's/.*WARN.*/${color yellow}&${color}/Ig' -e 's/.*INFO.*/${color green}&${color}/Ig' | fold -w52 | sed 's/^/ \${voffset -3}/'}Beta Was this translation helpful? Give feedback.
All reactions