Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2796

wsl -e cannot run a script that I can run when wsl has been executed

$
0
0

I created a script in Ubuntu:

# bash_test_01.shecho "cmd is executed"

Running the script from inside WSL works:

> wsl$ cd /home$ /home/bash_test_01.shcmd is executed.

However running the script from outside WSL fails:

> wsl  -e /home/bash_test_01.shWSL (31608) ERROR: CreateProcessEntryCommon:570: execvpe /home/adm_difolco_e/bash_test_01.sh failed 8```WSL (31608) ERROR: CreateProcessEntryCommon:579: Create process not expected to return

Viewing all articles
Browse latest Browse all 2796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>