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
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