alanrenouf / vCheck-vSphere

vCheck Daily Report for vSphere
MIT License
733 stars 325 forks source link

Alans vCheck script on Centos fails to run via cron #735

Open tburhade opened 3 years ago

tburhade commented 3 years ago

Dear Lucd,

Alans vCheck script is working absolutely fine for me on centos.

But when I schedule cron for the vCheck script it fails and the script does not run.

Can you please suggest what can be done to schedule the vCheck script on Centos?

Things I have tried so far. Running the script & scheduling as /usr/bin/pwsh/ /path/to/vCheck.ps1 & this did not work Setting the user's shell to pwsh and then scheduling the script but did not work. Tried to mention environment variables in the vCheck script & it failed.

Please suggest.

I'm using Alans vCheck script version 6.25 on centos 7.8 Powershell version 7.1.0