如何从 windows 任务调度器 运行 在 ( ubuntu bash windows 10 ) 上编程

How to run program on ( ubuntu bash windows 10 ) from windows task scheduler

我需要在 ubuntu bash 中每 5 分钟执行一次任务,我喜欢使用 windows 任务调度程序。 在ubuntubash中,我不知道如何编写.bat 文件来启动应用程序。 我测试了这些但没有用。 c:\Windows\System32\bash.exe -l [program_name args]

可以在 ubuntu bash 上执行 运行 命令并在参数

中添加 -c 标志
c:\Windows\System32\bash.exe -c <command>

并将其写入.bat 文件,然后添加到windows 任务调度程序。