| re: exec in background on Windows
Alan,
You could also run a vb script file to do what you're looking for. You
can have the script execute the file and not wait for the process to
exit. Then the vb script exits, but your process keeps running.
You could probably use the vb script to do some sort of service wrapper,
or a service start/stop for you (if you install the program as a service).
Jason.
Bent Stigsen wrote:[color=blue]
> Alan Walkington wrote:
>
>[color=green]
>>Folks:
>>
>>How can I get an /exec'ed/ process to run in the background on an XP box?
>>
>>I have a monitor-like process which I am starting as
>>'exec("something.exe");' and, of course the exec function blocks until
>>something.exe terminates. Just what I /don't/ want. (Wouldn't an & be
>>nice here! Sigh)
>>
>>I need something.exe to disconnect and run in the background while I
>>continue on with my script.[/color]
>
>
> you could install your program as a service, and then do a net start/stop.
>
> there was a service-wrapper for NT, but for XP??
>
> /Bent[/color] |