D
D
ddc2021-07-24 10:24:04
PowerShell
ddc, 2021-07-24 10:24:04

Batch script that starts bash, how to implement this?

I have an ubuntu terminal installed on my windows PC, I need to make a bat file that launches the Ubuntu terminal and performs a certain action in it (in my case, "cd Pee, perl main.pl")
in the bat file, I tried to do it this way:

echo start...
ubuntu
cd Pee
perl main.pl

only ubuntu terminal opens, nothing else happens, hope for your help

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2021-07-24
@xxaaoocc

And all you need to do is google it...
https://github.com/microsoft/WSL/discussions/6128
Better put all the bash commands in sh script and run it in wsl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question