I would like if Invoke-VMScript could call python scripts directly, without the need to create a wrapper in bash. This would save cycles on the guest VM and this use case would beneficial to anybody that is managing a multitude of Linux VMs.
Personally, I would make this a bit more open, so we're not locking ourselves in as we don't know what else might be coming in future ... I know I had some challenges w/running GuestOps on Nested ESXi and since it uses 'ash', there were some quirks.
IMHO, GuestOps should just do what you would get if you ran the command directly on the OS (thats responsibility of end user to ensure things work before invoking) and this way its true to its function :)
In fact only Perl support should be sufficient. With Perl support one should be able to use the "shebang" for most of the other languages, including python.
Example #!/usr/bin/env python3 print("Hello World!")
http://www.lucd.info/2017/09/14/invoke-vmscriptplus/
Attachments Open full size
While waiting for this feature, you could use a function of mine :-)
Attachments Open full size
Personally, I would make this a bit more open, so we're not locking ourselves in as we don't know what else might be coming in future ... I know I had some challenges w/running GuestOps on Nested ESXi and since it uses 'ash', there were some quirks.
IMHO, GuestOps should just do what you would get if you ran the command directly on the OS (thats responsibility of end user to ensure things work before invoking) and this way its true to its function :)
Attachments Open full size
according to people, bash is the only thing that's supported today
Attachments Open full size
In fact only Perl support should be sufficient.
With Perl support one should be able to use the "shebang" for most of the other languages, including python.
Example
#!/usr/bin/env python3
print("Hello World!")
Attachments Open full size