VMware Communities
bsenftner
Contributor
Contributor

surpressing vmrun output via "&> /dev/null" does not always work

host: OS X 0.4.11, core 2 duo MacBookPro

guest: WinXP with service pack 3

I'm using vmrun in a host-side bash script for a series of operations, copying files to the guest, running executables on guest, and copying the resulting files back to the host.

For all the cases of using vmrun's copyFileFromHostToGuest, deleteFileInGuest, and copyFileFromGuestToHost I am able to use "&> /dev/null" to suppress any error message output and still handle the error via looking at "$?".

However, vmrun's runProgramInGuest command seems to be different. Forced errors to generate an error message to test if "&> /dev/null" works shows it does not...

Any hints how to suppress output in this situation?

0 Kudos
0 Replies