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.
While waiting for this feature, you could use a function of mine :-)
python.jpg
python.jpg
View full size image
python.jpg
William Lam commented
7 Sep, 2017 02:53pm
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 :)
Dave Kalaluhi commented
7 Sep, 2017 02:05am
according to people, bash is the only thing that's supported today
Luc Dekens commented
6 Sep, 2017 08:04pm
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/
While waiting for this feature, you could use a function of mine :-)
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 :)
according to people, bash is the only thing that's supported today
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!")