1

I am using a preconfigured cygwin that is packaged into the MobaXterm product. Following is an example of the issue I am facing:

$ sbt package
/usr/bin/bash: /drives/c/apps/sbt/bin/sbt: No such file or directory

The actual command that should have been invoked is:

/drives/c/apps/sbt/bin/sbt

So what I need here is some environment variable that tells cygwin a set of potential extensions to file names:

Something along the lines of:

export EXE_EXTENSIONS=CMD,cmd,EXE,exe,BAT,bat
0

you can run the following command

cmd /c <executable>

For example, I wanted to run the mysql (mysql.exe) present inside the C:\installedSoft\xampp\mysql\bin directory. It works when tested in MobaXterm and it works fine as expected. Ensure the executable is in your PATH environment variable.

which will run the windows native executable files on the Cygwin like shell utilities.

  • 1
    The question mentioned not including the extension. – javadba Sep 1 '19 at 20:12
  • Thanksk @javadba. I have edited the answer. In fact this trick works for the executable without the extension as well. – itsraghz Dec 10 '19 at 6:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.