Skip to main content

Thread: Bash, zenity clears the variable


i want have result in variable.
code:
apt=`sudo apt-get update`  echo "$apt"
echo returns.
code:
apt=`sudo apt-get update | zenity --progress --auto-close`  echo "$apt"
echo empty returns. why doesn't display? how well?

man tee

tee stdout zenity , cat stdoutput file on finish

eg

code:
sudo apt-get update | tee mylog.log | zenity --progress --auto-close cat mylog.log


Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Bash, zenity clears the variable


Ubuntu

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support