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]
Asked
Active
Viewed 3,131 times
4
-
It is not clear what you want to do, could you explain more? – Mahdi May 09 '17 at 12:44
-
I need to schedule task in ubuntu bash with windows task scheduler. – amin saffar May 10 '17 at 14:35
1 Answers
7
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.

amin saffar
- 1,953
- 3
- 22
- 34
-
When I do this I get an 0x75 code in the results and the script isn't executed. – Robert Moskal Jul 07 '20 at 13:53
-
open cmd and try `bash.exe -c "echo hi"` to check everything working fine – amin saffar Jul 07 '20 at 15:20
-