A
A
Alexander Vishnev2019-06-12 14:09:28
linux
Alexander Vishnev, 2019-06-12 14:09:28

How to run a Linux application from under Windows 10 using a bat file?

There is an application that I run in Ubuntu 16.04 from under Windows 10. How to make a bat file so that an application under niks is launched when it is launched.
Tried like this:

@echo off

cd c:/applic
bash
sudo ./sqlcmps -clean
password

goto

But in this way, only the command line of the nix is ​​entered. The command to execute the application is not executed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CityCat4, 2019-06-12
@fromdns

Well, that's exactly what's going on. The command "bash" was executed - and you got a command console. Close bash - the commands from the bat-file will continue to be executed. You need to pass the command IN bash, not AFTER it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question