Type commands in ubuntu app (WSL) from batch file in windows
Posted: 06 Jul 2021 14:25
I have a complex python based model that is executable only in linux environment. But it needs to be scheduled daily from windows operating system. So, I have installed ubuntu app in windows by activating the Windows subsystem for linux (WSL), and that is working fine when executed manually. But the real problem starts when I need to schedule the execution by using batch file. I am able to open the ubuntu app by using:
echo off
start ubuntu.exe
however, when entering any other command in the batch file (eg. changing the drive, start ubuntu.exe cd /mnt/d/), then the whole ubuntu terminal disappears. I guess the problem could be solved when it could be figured out that how to type commands into a ubuntu terminal by using cmd. Any help to give sort of lead is appreciated.
Thanks in advance
echo off
start ubuntu.exe
however, when entering any other command in the batch file (eg. changing the drive, start ubuntu.exe cd /mnt/d/), then the whole ubuntu terminal disappears. I guess the problem could be solved when it could be figured out that how to type commands into a ubuntu terminal by using cmd. Any help to give sort of lead is appreciated.
Thanks in advance