[英]BASH how can i get other scripts output, in the active dialog box?
我有一个使用ncurses的对话窗口。 但是在那个对话框窗口中我想显示我的driver.sh输出,我该怎么做? 或至少是完整或不完整的东西。
1)/tmp/main.sh
if [ "$output" = "1" ]; then
# here in this window the driver.sh ouput should show
dialog --msgbox "Here it should show the output of driver.sh" 10 100
configure=`/tmp/driver.sh`;
fi
2)/tmp/driver.sh
cd /tmp;
if [ ! -d "${pkgdirectory}/test" ]; then
cd ${pkgdirectory}
git clone git://code.test.com/git/test.git;
cd ${pkgdirectory}/test;
./autogen.sh;
make;
make install;
else
cd ${pkgdirectory}/test;
./autogen.sh;
make;
make install;
fi
dialog
有一个--tailbox
选项(还有一个--tailboxbg
), --tailboxbg
你的需要。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.