LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Conky cat (https://www.linuxquestions.org/questions/linux-software-2/conky-cat-761067/)

MediocreGopher 10-10-2009 09:43 PM

Conky cat
 
I have conky set up and working more or less perfectly, except for one detail. In my setup I have the following line:
Code:

${execi 20 cat ~/path/to/file}
The file it's reading has multiple lines.

If I start conky manually (go to the terminal and type in 'conky') conky starts perfectly and the file gets read and output in its entirety. However, I set up conky to start on login using the same command ('conky'), and about 80% of the time, when it starts up automatically, only the first line of the file gets read and output. When I manually restart conky ('killall conky && conky') it restarts and works again. Does anyone know why this would happen? And how it could get fixed?

Here's extra info:
Kernel: 2.6.30.8-64.fc11.x86_64
Conky: Version 1.7.0

~sHyLoCk~ 10-10-2009 10:31 PM

What file are you trying to read? Does it involve connecting to internet?

MediocreGopher 10-10-2009 11:11 PM

Basically, a separate program gets info from the internet, then puts that info into the file, which is just a plain old text file.

highfructose327 10-10-2009 11:35 PM

I had a different issue with conky, but; the same solution might work for you. I needed conky to wait for another process to finish, before conky started. I used a script conky_start.sh
Quote:

#!/bin/bash
sleep 15 && conky;
this makes conky wait 15 seconds before starting allowing the process to load. Just a thought

MediocreGopher 10-11-2009 03:39 PM

I had that thought as well, and I did that exact thing (although I wait 30 seconds). Still doesn't work though :/


All times are GMT -5. The time now is 04:13 PM.