./data_mining_job && growlnotify -m "Success!" || growlnotify -m "Failure :-("
(season with while, read and grep to taste) ./data_mining_job && growlnotify -m "Success!" || growlnotify -m "Failure :-("
(season with while, read and grep to taste)Unit tests would ensure stupidity was not a possibility, and regressions could be tracked. Too late for that, unfortunately.
So I watch.
growlnotify -m "Success! "
(the space tells bash to treat the exclamation point as text) growlnotify -m "$(echo Great\! Success\!)" sub escape {
my $arg = shift;
$arg =~ s/([^a-zA-Z0-9_])/\\$1/g;
return $arg;
}