A lot of times it happens that we run a time consuming process and we have to check again and again whether the process has completed. So here is a way around to create a notification when the process completes.
APLAY
The aplay command in ubuntu lets you play a wav file. The full execution command is
aplay /home/user/test.wav (aplay path_to_music_file)
We will be creating a short alias for this as
alias notify="aplay /home/user/test.wav"
Now whenever we run a time consuming process simply add notify command to its end. Eg:
sudo apt-get update; notify
This will run the audio file once the update is complete and you will be notified of completion :)
APLAY
The aplay command in ubuntu lets you play a wav file. The full execution command is
aplay /home/user/test.wav (aplay path_to_music_file)
We will be creating a short alias for this as
alias notify="aplay /home/user/test.wav"
Now whenever we run a time consuming process simply add notify command to its end. Eg:
sudo apt-get update; notify
This will run the audio file once the update is complete and you will be notified of completion :)
No comments:
Post a Comment