I prepared the ~/.conkyrc file using the following configuration:
As a result conky command prints data to STDOUT.
Now Iíd like to redirect the output of conky to a file.
conky > file.tmp
appends the data to the given file.
So it works as:
some_command >> some_file
some_command > some_file
I know I can run repeatedly the commands:
conky -i 1 > file.tmp
to achieve the result Iíd like to achieve but I prefer to run conky once as a daemon in the background instead of running it repeatedly using a shell script.
So my question is: how to force conky to print the data to a file (overwrite not append)?