You are not logged in.
I made a script for pacman and pacaur commands when I started to use arch and the last days I made a zenity version. I have almost complete what I wanted to do except that I also want to redirect the output of install and remove commands to a zenity dialog. I've already done this for other operations as update or searching for packages, but for install and remove commands I cannot because in some point ask for user interaction.
So, right now for these operations(e.g install) I use this:
echo -e $zPass | sudo -S xfce4-terminal -H -e "bash -c 'pacman -S $inpkgs; exec bash'"
which opens a terminal and in some point asks to press yes/no for package installation or abortion.
Is it possible to redirect this output to a zenity dialog but when the command asks for user interaction to popup a question dialog to answer yes or no to continue the operation?
Offline