Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

execute_program_in_vm.py in windows VM #11

Open
jwed opened this issue Nov 17, 2016 · 0 comments
Open

execute_program_in_vm.py in windows VM #11

jwed opened this issue Nov 17, 2016 · 0 comments

Comments

@jwed
Copy link

jwed commented Nov 17, 2016

hello

I used this sample execute_program_in_vm.py on Windows VM and it's give me the following output

Program executed, PID is 2772

but on the other side there is nothing happen, because I'm wating to execute my python file but my python file didn't show anything.

what is the problem and is this sample running on WIndows Vm ??

Thank you

swamycnn added a commit to swamycnn/pyvmomi-community-samples that referenced this issue May 31, 2017
When a pid is returned from guest, it would be nice to have poll on the status till its complete.
I've added a delay of 5 sec, that may vary on process we do .. thought, this can help.
I can relate this to a comment: reubenur-rahman/vmware-pyvmomi-examples#11

I'm proposing .. we could run, (pm.ListProcessesInGuest(vm, creds, [res]).pop().exitCode == None) in while with delay to check the status ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant