468,117 Members | 1,873 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,117 developers. It's quick & easy.

exec in background on Windows

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.

Any help appreciated.
Thanks,

Alan Walkington
United Defense
San Jose, CA
Jul 16 '05 #1
4 18125
Alan Walkington wrote:
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.


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
Jul 16 '05 #2
"Bent Stigsen" <.@thevoid.dk> wrote in message
news:3e***********************@dread15.news.tele.d k...
Alan Walkington wrote:
Folks:

How can I get an /exec'ed/ process to run in the background on an XP box? <snip>
I need something.exe to disconnect and run in the background while I
continue on with my script.


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

I think that was a Java service wrapper, not PHP.
Surely there is a way to start a process in Windows without having to
babysit it!

Alan
Jul 16 '05 #3
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:
Alan Walkington wrote:

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.

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


Jul 16 '05 #4
Have you tried exec'ing "start something.exe" ? That would start it as a
seperate process.??

"Alan Walkington" <alan[REMOVE]@walkington.net> wrote in message
news:Uf**********************@news.easynews.com...
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.

Any help appreciated.
Thanks,

Alan Walkington
United Defense
San Jose, CA

Jul 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by steronz | last post: by
reply views Thread by Dmitry Pljonkin | last post: by
6 posts views Thread by Hal Vaughan | last post: by
13 posts views Thread by giloosh99 | last post: by
4 posts views Thread by Shailesh Humbad | last post: by
12 posts views Thread by didacticone | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.