Cannot Run Bash Script from Task Scheduler with Windows 1607

Cannot Run Bash Script from Task Scheduler with Windows 1607

I need to make a scheduled task to run a bash script on Windows 10 new release. The script works fine from bash, works fine from cmd or PowerShell, but if I run it from Task Scheduler it comes up blank. I've tried with task parameters like "start a program " with arguments "bash ", and with bat file to start the script. No luck.

Thank you very much for your help!

1 Answer

In the arguments, use *nix path such as the one below:

/mnt/c/Test/myscript.sh

.. where Windows equivalent path is C:\Test\myscript.sh

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Alexander Ross
Author

Alexander Ross

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.