Madhu
4/23/2015 6:16:00 AM
* Kaz Kylheku <20150422163033.624@kylheku.com> :
Wrote on Wed, 22 Apr 2015 23:59:20 +0000 (UTC):
| On 2015-04-22, Mark Tarver <dr.mtarver@gmail.com> wrote:
|> Is there any way of invoking SBCL (or for that matter CLisp) as a background
|> process under Windows w.o. having the REPL appear in a Window?
|
| Yes there is: the CreateProcess WIN32 API. In the startup information
| structure there is wShowWindow member to control this.
|
| I developed an application using Clozure Common Lisp. I can interact
| with it in a console window during debugging.
|
| In deployed mode, it runs in the background on the user's machine,
| without any window, and is controlled by a monitor program that I
| wrote using Visual C++. The notification program launches the Lisp
| executable using CreateProcess, in a way that the console window
| doesn't show.
GNU Emacs ships with a file nt/runemacs.c to "start Emacs with its
console window hidden". This is a CreateProcess wrapper around
"emacs.exe". Perhaps there are general versions of this `exec' utility
to do the same for any executable that starts a console window.
If OTOH the OP wanted to use the Windows Services subsystem to run a
`backrgound' process---franz had `ntservice' and LW ships with
examples/delivery/ntservice/ to do this from lisp---then the console
window may not show up unless the service runs as a certain privileged
local user account, [I haven't run win7 since maybe 2010, so this
information "should be treated circumspectly"]
[snip]
---Madhu