At the end of my scripts I use often put "konsole" bash command, to know that the script is completed.
Now I'd like to add a text within the konsole (terminal), something such as "done!".
How should I do? What bash command I should add to my scripts?
I tried with konsole echo "done!"
, but usuccessfully.
Thank you!
-
Are you running your script by double mouse click within the file explorer and you want to keep the terminal window (where the script is executed) open after the script is finish?– pa4080Oct 24, 2019 at 7:15
-
No, I start the script usually via KDE menu (without terminal). Terminal appears only at last. But I think that my solution below is better. Thank you.– DunsOct 24, 2019 at 9:19
2 Answers
Maybe it's better something like this (with zenity):
zenity --info \
--text="<span size=\"xx-large\">done!</span>" \
--title="you did it!" \
--display=:0.0
at the end of the script
-
Or this: askubuntu.com/questions/656603/… and askubuntu.com/questions/409611/…– cipricusSep 15, 2022 at 10:44
Given you have accepted zenity pop-up as a solution, a similar result is possible with just:
notify-send "you did it!"