fastsupply / growl

Automatically exported from code.google.com/p/growl
0 stars 0 forks source link

growlnotify shouldn't create notification when stdin produce empty string #132

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output?

What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by colossus...@gmail.com on 7 Jun 2010 at 9:49

GoogleCodeExporter commented 9 years ago
Sorry, premature submit and no way to edit or delete ticket.

I mean to add this common use case:

my_program | tee -a logfile | growlnotify -t
or
my_program | grep 'string of interest' | growlnotify -t

On every run, even if my_program produces no output or the grep statement 
doesn't
match, growlnotify produces an empty notification. One must add another layer of
logic using something like awk or perl to only call growlnotify when necessary.

Original comment by colossus...@gmail.com on 7 Jun 2010 at 9:54

GoogleCodeExporter commented 9 years ago
Seems reasonable. Those who want to send a notification with an empty 
description could use -m ''.

Original comment by prhgr...@gmail.com on 12 Jun 2010 at 1:10

GoogleCodeExporter commented 9 years ago

Original comment by rarich...@gmail.com on 10 Jul 2010 at 6:43