x89 / Tea

Tea reminder
Other
19 stars 3 forks source link

Announce that tea is ready to all logged-in users #6

Closed thomastoye closed 9 years ago

thomastoye commented 9 years ago

The wall command

[...] displays  a message, or the contents of a file, or otherwise its standard input, on the terminals of all currently logged in
   users.  The command will wrap lines that are longer than 79 characters.  Short lines are whitespace padded to have 79  characters.
   The command will always put a carriage return and new line at the end of each line

(from the man page on WALL(1))

I do a lot of work on the terminal, and thus it would be very helpful if I also got an alert that way. This line solves my all of my problems and more.

You can see how it looks here: http://imgur.com/a/OvarU

x89 commented 9 years ago

Aha! I am familiar with wall, it'll be added to the options people are looking for to have green tea or no milk for example.

x89 commented 9 years ago

I'm not sure if I should merge this at the moment though. What if you were in a building with 70 employees - would you wish for them all to be made aware of your current tea situation?

thomastoye commented 9 years ago

Hi, I updated to only write to $USER's terminals. Feel free not to merge if this isn't something you're not looking for :)