[SOLVED] Conky generates "sh: 1: skb: not found" on terminal (a lot!)
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Conky generates "sh: 1: skb: not found" on terminal (a lot!)
I have a conky I love but it has for a long time been generating an error I do not understand, can anyone point me in the right direction? If I start my conky instance form terminal it gives:-
Code:
conky: no process found
Conky: desktop window (160001c) is subwindow of root window (1a6)
Conky: window type - panel
Conky: drawing to created window (0x5600002)
Conky: drawing to double buffer
sh: 1: skb: not found
sh: 1: skb: not found
sh: 1: skb: not found
sh: 1: skb: not found
sh: 1: skb: not found
sh: 1: skb: not found
sh: 1: skb: not found
sh: 1: skb: not found
....endlessly for as long as it runs. It seems to be spitting it out around once a second! It will eventually stop altogether after a few hours and the GUI promt to submit an error report pops up(or rather did until I checked the box to ignore future errors of this type).
I have googled for hours and found nothing that appears to be relevant, have absolutely no idea how to fix this. I am currently running ubuntu 14.10 but I have had this exact issue with this particular conky since 12.04 and possibly before.
Your Conky calls several scripts in your users .scripts directory. Since the error message states that the shell, not Conky, has problems to find a file sbk this is the first place I would check.
A simple
Thanks TobiSGD, I finally feel like I'm getting somewhere now, I had no idea what the error was telling me!
So I did:-
Code:
grep skb ~/.conky/.scripts_orange/*
and that returned:-
Code:
~/.conky/.scripts_orange/main.lua:if conky_parse("${exec skb 1}") == "Rus" then textlang = "RUS" else textlang = "UK" end
So I have opened up that lua script, the offending section looks like:-
Code:
if conky_parse("${exec skb 1}") == "Rus" then textlang = "RUS" else textlang = "UK" end
local d = conky_parse("${exec xset q | grep Num |awk '{print $4\" \"$8}'}")
local i = 1
local num_on = false
local caps_on = false
colour_num = 0x000000
colour_cap = 0x000000
for word in string.gmatch(d, "%a+") do
if i == 1 and word == "on" then colour_cap = 0xc0c0c0 end
if i == 2 and word == "on" then colour_num = 0xc0c0c0 end
i = i + 1
end
I have googled for skb extensively and found little or nothing that makes any sense to me, could this be an alias the author had set on their system? If so what do you think it would likely for?? To my limited understanding this appears to be the bit of code that draws the keyboard language indicator at the top of the conky and it seems to work afaik. As a test I tried commenting that one line out and it got a bit weird, the 'UK' from the top was replaced by 'Conky is good for you' which obvs doesn't fit in the frame so is drawn across the whole of the width of my conky!!!
Did a little research and found it: http://plhk.ru/
They don't offer an Ubuntu package, but it is trivial to install, just untar it, change to the directory and either do
Code:
make
make install
or just the first make and then copy the resulting binary into your path, possibly /usr/local/bin.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.