Is there any way to run .bat file in Linux environment?
I have a couple of .bat files, the purpose of them is to call mvn install:install-file scripts. Thus nothing OS dependent is in the scripts.
Thank you,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
wineordosbox, but in general there is no knownbatinterpreter for linux. There are, however, implementations of various unix shells for windows, there’s even a standard toolkit,Windows Services for UNIX(a.k.a.SUA), which includekshimplementation and many other nice goodies, so if you want it OS-transparent, you could consider using that and write your scripts in a POSIX-compliant shell scripting language.— edit —
On the other hand, if your script contains nothing else other than an
mvn <params>, you can just make sure the file has execute permissions (xflag), prepend it with a shell interpreter (like/bin/bash script.bat) and have a go at it. Success not guaranteed, though.