Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
Please answer the question, don't put your solution in the question. – Binarylife May 12 '11 at 17:56

As you pointed out:

I sorted the problem by using this

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

which works perfectly


share|improve this answer

Your Answer


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.