In fact I have installed cygwin on windows server 2016, and my scripts run perfectly inside bash terminal.
Now I want to schedule my scripts to run per day using windows task scheduler.
So I have created a new task:
Action: start a program
Program/Script: C:\cygwin64\bin\bash.exe
Add arguments: "/home/administrator/myscript.sh"
And finally I triggered it everyday.
But it's not working, last run result I get (0x41303)
It's the first time I'm using task scheduler with cygwin, otherwise crontab is much easier.
Can you guys help me out.