By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,833 Members | 2,076 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,833 IT Pros & Developers. It's quick & easy.

exec in background on Windows

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
"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

P: n/a
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

P: n/a
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.