How to post that a command is completed on screen
Hi All
My setup is ubuntu14.04 64 bit. One beaglebone black board. I flash the sd card using this command dd if=./bonexxxx.img of=/dev/sdx command. It takes some time say 15 minutes on my machine. How can I post on screen a message such as "command completed" each time I run a command that takes more than 10 minutes. |
# dd if=./bonexxxx.img of=/dev/sdx && echo "Command Completed"
|
do you mean something like this?
Code:
command && echo command completed |
http://i.imgur.com/Y4xlUf5.png
Added a screenshot. So in place of "Connected wired connection2" It should say "<Command> completed" May be its a script related question. |
If you have "zenity", "yad", "xmessage", or something similar, you can have a message pop up on your desktop.
Code:
dd if=./bonexxxx.img of=/dev/sdx && zenity --info |
You could try using ; instead of &&. The && is dependent on the previous "successfully" completing (return code 0). Which would have no prompting if it failed. I tend more towards something like this:
Code:
$ date +%Y%m%d_%H:%M:%S; command; date +%Y%m%d_%H:%M:%S; beep |
All times are GMT -5. The time now is 08:34 AM. |