Todd
2011-02-21 01:12:57 UTC
Hi All,
I have a bash script with the following command in it.
Error="`su $DefaultUser -c "/usr/bin/VBoxManage \
--nologo guestcontrol execute "$VM_Name" \
'C:\Windows\system32\shutdown.exe' \
--arguments '/f /t 5 /s /d p:2:3' \
--username $WinAdminUser \
--password $WinAdminPassword \
--wait-for stdout" | \
grep ERROR`"
Problem, VBoxManage occasionally never completes and
the command hangs. The rest of the script will not
complete. And that creates a big problem.
If I put a "&" at the end of the grep command, it will still
have to wait for "Error=" to populate, so I am stuck.
Anyone know a way to run VBoxManage such that it will
time out if the command seizes?
Many thanks,
-T
I have a bash script with the following command in it.
Error="`su $DefaultUser -c "/usr/bin/VBoxManage \
--nologo guestcontrol execute "$VM_Name" \
'C:\Windows\system32\shutdown.exe' \
--arguments '/f /t 5 /s /d p:2:3' \
--username $WinAdminUser \
--password $WinAdminPassword \
--wait-for stdout" | \
grep ERROR`"
Problem, VBoxManage occasionally never completes and
the command hangs. The rest of the script will not
complete. And that creates a big problem.
If I put a "&" at the end of the grep command, it will still
have to wait for "Error=" to populate, so I am stuck.
Anyone know a way to run VBoxManage such that it will
time out if the command seizes?
Many thanks,
-T