【发布时间】:2012-08-11 02:58:46
【问题描述】:
我一直在写一个脚本来检查天气。该脚本很好,并且作为 cronjob 工作得很好,但是,我现在正试图将脚本的结果(今天的天气预报)显示在 conky 中。
我有一个 python-weather 脚本写入的文件“weather-outside”,然后我将它添加到 conkyrc 文件中:
${color grey}Weather:${scroll 16 $execi 3600 cat $/home/User/Desktop/misc./weather-outside | fold}
execi 命令应该以设置为 3600 秒的间隔运行,但是,这是在运行 conky 之后出现的错误消息:
Conky: execi needs arguments
Conky: Error destroying thread
***** Imlib2 Developer Warning ***** :
This program is calling the Imlib call:
imlib_context_free();
With the parameter:
context
being NULL. Please fix your program.
我已将 execi 更改为 exec 但实际上是 'cat $home/User/Desktop/misc./weather-outside | fold' 滚动浏览 conky 而不是该文件中的文本?
【问题讨论】: