2

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!

2
  • 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?
    – pa4080
    Oct 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.
    – Duns
    Oct 24, 2019 at 9:19

2 Answers 2

2

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

1
1

Given you have accepted zenity pop-up as a solution, a similar result is possible with just:

notify-send "you did it!"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.