D
D
dentxt2019-01-16 18:15:30
ubuntu
dentxt, 2019-01-16 18:15:30

executing exe file on ubuntu server?

Lord.
Four days I can not find the answer to a very important question for me.
There is a server on Ubuntu on which the site is currently located.
There is a program written in C #, now it's just an exe file with a couple of libraries.
The bottom line is that the program does not have an interface, a command is simply entered through CMD, which indicates the name of the exe file, the file to be processed and the type of output. After executing this command, a JSON file is created in the folder.
Program_name.exe file_name.format --fileoutput
Now all this needs to be repeated on the server:
- The user uploads a file through a form on the site
- The exe file is launched by a command that specifies the name of the uploaded file
- A JSON file is created with which I can work with in the future.
I did not find a sensible answer on how this can all be done on a server with Ubuntu.
For starting another server on Windows for this business seems like complete nonsense to me, when I'm sure that it can be done much easier.
I hope for your help!

Answer the question

In order to leave comments, you need to log in

5 answer(s)
P
poisons, 2019-01-16
@poisons

wine+ .Net framework.

A
Alexander, 2019-01-16
@alexr64

1) mono
2) port to net core
3) wine

R
Roman Mirilaczvili, 2019-01-16
@2ord

For a console program, the Mono variant (mono-runtime package) may work. If at startup there will be an exception about missing library dependencies, then you need to install the mono-complete package.
Run like this:
mono Program_name.exe file_name.format --fileoutput

T
ThunderCat, 2019-01-16
@ThunderCat

wine?

P
Puma Thailand, 2019-01-16
@opium

Either through a vine or through a pillbox there is no bark if it starts up

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question