[linux/tip] add sound alert after your command done its execution

Sometime you need to wait for the end of your command. I recently do kernel compilation alot, and I have to wait about 30 mins for each compilation. So I just run it background, and do other things. This is when you need a sound alert letting me know that the compile is done. Here’s how to.

time [yourcommand] && paplay [sound_file]

paplay must be installed in your system by default, and numerous system alert sounds can be found under /usr/share/sounds..
have fun~~ ^^

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s