Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to display the latest NotifyOSD notification in conky, I can display the entire file with

${execi 30 cat ~/.cache/notify-osd.log}

But is it possible to show only the last line of the file? and get it to periodically check the log for changes to the last line?

share|improve this question
5  
Please answer the question, don't put your solution in the question. –  Binarylife May 12 '11 at 17:56

1 Answer 1

As you pointed out:

I sorted the problem by using this

${execi 30 cat ~/.cache/notify-osd.log| tail -4}

which works perfectly

(source)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.