Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows 10 - "sleep": executable file not found in $PATH #305

Closed
testautomation opened this issue Mar 5, 2020 · 1 comment
Closed

Windows 10 - "sleep": executable file not found in $PATH #305

testautomation opened this issue Mar 5, 2020 · 1 comment
Labels
state: duplicate Duplicates another issue.

Comments

@testautomation
Copy link

Task version: 2.8.0
OS: Windows 10 64 bit

error:

echo ... staring EHRbase server ...
... staring EHRbase server ...
java -jar ../application/target/application-0.11.0.jar --cache.enabled=false > log &
sleep 20
"sleep": executable file not found in $PATH
task: Failed to run task "start": task: Failed to run task "starteb": exit status 127

example task

starteb:
        cmds:
          - echo ... starting EHRbase server ...
          - java -jar ../application/target/application-0.11.0.jar --cache.enabled=false > log &
          - sleep 20
          - echo ... EHRbase server started.

additional information

sleep is not supported by Window's cmd.exe

image

but works in PowerShell

image

task command was executed in "Windows Terminal (Preview)" which uses PowerShell under the hood - not cmd.exe

@andreynering andreynering added the state: duplicate Duplicates another issue. label Mar 14, 2020
@andreynering
Copy link
Member

Hi @testautomation,

What happens is that the sleep builtin is not implemented on the shell interpreter Task uses, so it unfortunately won't work on Windows for now (which doesn't have a proper executable called sleep available).

I'm closing this as a duplicate of #197.

For more information see mvdan/sh#93 and mvdan/sh#97.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: duplicate Duplicates another issue.
Projects
None yet
Development

No branches or pull requests

1 participant