Dear All,
I am trying to run a script with the following command:
echo "~/scripts/teste.sh" | at 5:59PM
but nothing happens.
My script is:
---------------------------------------
#!/bin/bash
gxmessage -center \
-buttons "Yes":1,"Of Course":2 \
-geometry 290x80 \
-title "Linux Journal Question" 'Does Shawn Powers ROCK?'
answer=$?
case "$answer" in
1)
gxmessage -center "You said 'YES'"
;;
*)
gxmessage -center "I agree, Of Course."
;;
esac
---------------------------------------
If I run
sh ~/scripts/teste.sh
the script works as expected.
Any ideas?
Thanks in advance,
Paul