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

怎甘沉沦 提交于 2019-12-04 14:12:36

问题


I need to execute task every 5 minute in ubuntu bash and I like to use windows task scheduler. I don't know how to write a .bat file to start application in ubuntu bash. I tested these and did not work. c:\Windows\System32\bash.exe -l [program_name args]


回答1:


can run command on ubuntu bash with add -c flag in args

c:\Windows\System32\bash.exe -c <command>

and write it in .bat file and then add to windows task scheduler.



来源:https://stackoverflow.com/questions/43818696/how-to-run-program-on-ubuntu-bash-windows-10-from-windows-task-scheduler

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!