How to redirect the output of the vmrun listProcessesInGuest command on windows?
Posted
by
mark
on Server Fault
See other posts from Server Fault
or by mark
Published on 2012-12-06T10:41:53Z
Indexed on
2012/12/06
11:07 UTC
Read the original article
Hit count: 412
Windows
|command-line
I run vmrun.exe with listProcessesInGuest on the command line and get the list of processes displayed in the console window. The exact command line is:
"C:\VIX\vmrun.exe" -T vc -h "https://myserver/sdk" -u "mydomain\myuser" -p 123 -gu Administrator -gp 123 listProcessesInGuest "[Storage1] QA-W-7-SP1-64-0/QA-W-7-SP1-64-0.vmx"
It works fine.
Now I wish to redirect the output, however, neither 2>
nor 1>
work! The former has no effect - the output is still displayed in the console window, so I conclude it is send to stdout. But the latter does not work too - now nothing is displayed in the console window, but the redirection file is empty! It is created all right, but it has the zero size!
Can someone explain what is going on?
© Server Fault or respective owner