Stanislav Baiduzhyi
2014-09-09 13:57:49 UTC
Hi All,
Tell me please how VBoxManage exec decides when to print a line break and when not to print.
I'm launching my command like this (bash in debug mode):
VBoxManage guestcontrol "$ARG_VM_NAME" exec --username $VM_USER_LOGIN --password $VM_USER_PASSWORD --image "/bin/bash" --verbose --wait-exit --wait-stdout --wait-stderr -- -x /mnt/shared/$WORK_DIR/guest-build.sh
And in output (below) I see that some line breaks are not reprinted by VBoxManage, but some are, and I cannot figure out what should I do if I want to make some pretty multilined output from VBoxManage exec.
+ mkdir /mnt/ramdisk/tip-20140909-121521+ tar -C /mnt/ramdisk/tip-20140909-121521 -xzf /mnt/shared/tip-20140909-121521/src.tar.gz+ mkdir /mnt/ramdisk/tip-20140909-121521/jdk+ tar --strip-components=1 --directory=/mnt/ramdisk/tip-20140909-121521/jdk -xzf /mnt/shared/tip-20140909-121521/jdk-7u67-linux-x64.tar.gz+ mkdir /mnt/ramdisk/tip-20140909-121521/ant+ tar --strip-components=1 --directory=/mnt/ramdisk/tip-20140909-121521/ant -xjf /mnt/shared/tip-20140909-121521/apache-ant-1.9.4-bin.tar.bz2+ BUILDROOT=/mnt/ramdisk/tip-20140909-121521/buildroot
+ mkdir /mnt/ramdisk/tip-20140909-121521/buildroot+ cd /mnt/ramdisk/tip-20140909-121521/src+ source /mnt/shared/tip-20140909-121521/configure-wannabe-7.sh++ NEED_ERREXIT=
++ [[ ehxB =~ .*e.* ]]
++ set +e
++ NEED_ERREXIT=true
++ export LANG=C
++ LANG=C
++ export LC_ALL=C
++ LC_ALL=C
++ unset JAVA_HOME
++ unset LD_LIBRARY_PATH
+++ which pkg-config++ pkgconfig=/bin/pkg-config
++ '[' x/bin/pkg-config '!=' x ']'
Tell me please how VBoxManage exec decides when to print a line break and when not to print.
I'm launching my command like this (bash in debug mode):
VBoxManage guestcontrol "$ARG_VM_NAME" exec --username $VM_USER_LOGIN --password $VM_USER_PASSWORD --image "/bin/bash" --verbose --wait-exit --wait-stdout --wait-stderr -- -x /mnt/shared/$WORK_DIR/guest-build.sh
And in output (below) I see that some line breaks are not reprinted by VBoxManage, but some are, and I cannot figure out what should I do if I want to make some pretty multilined output from VBoxManage exec.
+ mkdir /mnt/ramdisk/tip-20140909-121521+ tar -C /mnt/ramdisk/tip-20140909-121521 -xzf /mnt/shared/tip-20140909-121521/src.tar.gz+ mkdir /mnt/ramdisk/tip-20140909-121521/jdk+ tar --strip-components=1 --directory=/mnt/ramdisk/tip-20140909-121521/jdk -xzf /mnt/shared/tip-20140909-121521/jdk-7u67-linux-x64.tar.gz+ mkdir /mnt/ramdisk/tip-20140909-121521/ant+ tar --strip-components=1 --directory=/mnt/ramdisk/tip-20140909-121521/ant -xjf /mnt/shared/tip-20140909-121521/apache-ant-1.9.4-bin.tar.bz2+ BUILDROOT=/mnt/ramdisk/tip-20140909-121521/buildroot
+ mkdir /mnt/ramdisk/tip-20140909-121521/buildroot+ cd /mnt/ramdisk/tip-20140909-121521/src+ source /mnt/shared/tip-20140909-121521/configure-wannabe-7.sh++ NEED_ERREXIT=
++ [[ ehxB =~ .*e.* ]]
++ set +e
++ NEED_ERREXIT=true
++ export LANG=C
++ LANG=C
++ export LC_ALL=C
++ LC_ALL=C
++ unset JAVA_HOME
++ unset LD_LIBRARY_PATH
+++ which pkg-config++ pkgconfig=/bin/pkg-config
++ '[' x/bin/pkg-config '!=' x ']'
--
Regards,
Stas
Regards,
Stas