For starters, please use code tags around your code. It makes it easier to read and preserves formatting.
Depending on the terminal emulator you're using, you can open a terminal and run a script.
Let's say you're using the Terminal emulator, and you want to run a script named check-credentials.sh
, in your present terminal you would open a new terminal window and run the script with:
For more info on the terminal command see:
Of course if you use another emulator such as xterm
, the construct would be different.
So your code would be"
if zenity --question --text "Did you run the '*******' script to check logging to *****?\n\nPress OK for YES and CANCEL for NO"; then
zenity --width=300 --width=200 --info --title 'Good!' --text "Good"
zenity --width=300 --width=200 --error --title 'Will Check Now!' --text "Will Login to *** **** Machines"
Notice the two changes in RED. The !
is a reserved character in BASH and as such must either be escaped to become a literal character or placed within strong quotes
BTW: Zenity on my machine, showed OK and Cancel buttons instead of Yes and No.
Hope it helps.