Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Quick Tip: The ''Say'' Command

DZone's Guide to

Quick Tip: The ''Say'' Command

Learn the easy command that will say what you pass it, convenient for things like alerting you when a long-running action like a clone completes.

· DevOps Zone ·
Free Resource

Learn more about how CareerBuilder was able to resolve customer issues 5x faster by using Scalyr, the fastest log management tool on the market. 

MacOS has a great tool, called say which just says what you pass it. For example, say "Hello" and next, you'll hear your device say "Hello."

Where this is really useful is when you want to do a long-running action and get notified when it is done. For example:

git clone https://github.com/torvalds/linux.git && say "clone complete"

So, what about for Windows? You can do something similar with Powershell. First the setup:

Add-Type -AssemblyName System.speech
$say = New-Object System.Speech.Synthesis.SpeechSynthesizer

Once you have that in place you can use it like this:

git clone https://github.com/torvalds/linux.git; $say.Speak("clone complete")

Find out more about how Scalyr built a proprietary database that does not use text indexing for their log management tool.

Topics:
devops ,macos ,git ,tutorial

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}