jmhayes
Enthusiast
Enthusiast

vCLI/Perl on Windows with Cygwin?

I looked into doing this today, but got hung up on the fact that every .pl file starts with

     #!/usr/bin/perl -w

I understand that gets ignored when running until the Windows CMD shell, but it obviously grabs the wrong version of Perl under Cygwin.

Any chance of getting that changed to something more like

     #!/usr/bin/env perl -w

I presume this is different on the Unix side, where you'd *for sure* not want to hard-code the path to Perl.

(although it makes me wonder why it's there at all on the Windows side ...)

Anyone else work around this?  I could go edit all the bin/*.pl files, but that would have to be redone the next time I upgrade ...

Thanks!

Tags (3)
0 Kudos
2 Replies
lamw
Community Manager
Community Manager

You don't neee Cygwin to run the vCLI, vCLI installs active perl which runs perfectly fine on a Windows system. You may have issues if you have other version of Perl installed, but a default installation of vCLI should work out of the box without any additional changes. Just make sure you're installing vCLI on a supported OS per the documentation

0 Kudos
Chris1962
Contributor
Contributor

In my case I NEED to run vmWare CLI within Cygwin. How can I do it?

0 Kudos