What I want to achieve is making a string command start server run the command wine ./_server.exe.
How would I do this?
What I want to achieve is making a string command start server run the command wine ./_server.exe.
How would I do this?
The particular syntax you use (start server) brings to mind Upstart session jobs, since it looks you want to use it as a service. Create a file in ~/.config/upstart/ called some-server.conf (change the name to suit your need, but it must have the .conf extension).
As contents use:
description "Describe your server"
script
cd /to/where/ever/_server.exe/is
wine ./_server.exe
end script
Now you can actually do:
start some-server
and
stop some-server
to start and stop the server. You could look at the respawn option too, if you want the program to restart if it exited.