speak a chat log file while it's running

tail -f LOGFILE | awk '{system("say \"" $0 "\"");}'
like #9295, but awkish instead of perlish

By: tamouse
2011-09-16 06:20:06

1 Alternatives + Submit Alt

  • say only processes a complete file, at eof, so following a file isn't possible. Quick and dirty perl oneliner to feed each line from the tail -f to say. Yes, expensive to lauch a new process each line. This little ditty was prompted by a discussion on how horrible it is to use VoiceOver on ncurses programs such as irssi.

    tail -f LOGFILE | perl -ne '`say "$_"`;'
    tamouse · 2011-09-16 05:33:22 2

What Others Think

I would only trust to chat with someone trustworthy. Once I started a chat with a girl and she copied and pasted all the intimate details into a public chat.
carlmarx · 15 weeks ago
This is really a big proglems these days. Sometime you either have to keep your mouth shut or chat at that site where people are not like you described. So I think that I would choose the second one. You can't live your whole life alone and silent. And what do you think about that? I hope you agree too.
SoamesRuth · 15 weeks ago
I loved this chat options. After pandemic it is hard to unlearn having this fear of Covid. And now this horrible monkey pox! I read https://newswatchtv.com/2019/06/27/discover-ladadate-resource-joining-love-seeking-people-together/ about how to start dating online and discover best dating sites. So perhaps this is what I will start with.
cryptolover · 9 weeks and 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: