Question:

I can start LumiSoft mailserver in console mode like this:

./lsMailServer.exe -daemon

Unfortunately this blocks the terminal that was used. And I am logged in via ssh.

I'm just experimenting with the server, so I need to restart a lot after configuration changes.

Normally, I'd use the open command in this circumstance, which normally works fine.

It also works fine, when I do open ./lsMailServer.exe with X-Forwarding.

But I want to run the server terminal-only, which requires the -daemon option. Now when I do

open opt/MyPath/lsMailServer.exe -daemon

I get the following error message:

open: invalid option -- 'd' Usage: openvt [-c vtnumber] [-f] [-l] [-u] [-s] [-v] [-w] -- command_line

How can I use open with a program + arguments for that program ?

link|improve this question

67% accept rate
feedback

1 Answer

up vote 2 down vote accepted

Aaaaah,forget it, one only needs to add -- after open:

openvt -- ls -l

or

open -- /opt/LumiSoft/MailServer/lsMailServer.exe -daemon

respectively

link|improve this answer
2  
I was writing an answer just with this information. Anyway, you definitely must give a look and a try to GNU screen. – enzotib Jan 31 at 19:42
feedback

Your Answer

 
or
required, but never shown

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