I have scripts that use something like
sudoCmd="sudo" [...] "$sudoCmd" "$0" "$@"
In the [...]-part there is code that decides whether a terminal is connected or not and then changes $sudoCmd if not.
Is there another way for me to query whether the programm called with gksu(do) succeeded?
I have scripts that use something like
sudoCmd="sudo"
[...]
"$sudoCmd" "$0" "$@"
In the [...]-part there is code that decides whether a terminal is connected or not and then changes $sudoCmd if not.
Is there another way for me to query whether the programm called with gksu(do) succeeded?