I'd like to grep some details from samsung-tools on the command line to show them in my system monitor (it's conky, but that doesn't matter for the question).
I try to use grep to read the output from samsung-tools, however, I only get an error.
Here's what I do:
Code: Select all
~$ samsung-tools -c status | grep -w 'mode' Traceback (most recent call last): File "/usr/bin/samsung-tools", line 771, in <module> main() File "/usr/bin/samsung-tools", line 723, in main Cpu(options.cpu, options.show_notify).apply() File "/usr/bin/samsung-tools", line 276, in apply print CPU_TEMPERATURE + " " + self.__temp() + unicode(" °C", "utf8") UnicodeEncodeError: 'ascii' codec can't encode character u'\xb0' in position 22: ordinal not in range(128)
As I'm just an experienced user but not a code guy, I don't know what the error means. Can somebody tell me what I am doing wrong?