472,353 Members | 1,243 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

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 18374
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: steronz | last post by:
I work in a network support office which uses a web form to receive network related problem reports from our end users. The web server is IIS 5.0...
1
by: Tony | last post by:
Wise ones, I'm running php under apache (I'm using the uniserv distribution) on Windows XP. Every time I execute an external command using...
0
by: Dmitry Pljonkin | last post by:
Hi! I have some troubles trying to start php script using exec() and leave it running in the background. Manual says: "If you start a program...
6
by: Hal Vaughan | last post by:
I have a script used to find and run Java on a Windows system.Itworked fine on original tests (on a Windows XP system).It'snowrunningona...
13
by: giloosh99 | last post by:
Exec, shell_exec, system, popen functions all run the process in the background. how can i get it to run the process normally. my code looks like...
5
by: snicks | last post by:
I'm trying to exec a program external to my ASP.NET app using the following code. The external app is a VB.NET application. Dim sPPTOut As...
4
by: Shailesh Humbad | last post by:
I was trying to exec a background process on XP using PHP CLI, but could not get it to work. Suppose the command I want to spawn off is "cmd". On...
2
by: DaBrain | last post by:
I am no DBA, but this is my task. I have an SQL Server 2000 Database that has an "SQL Account" that has execute permission on all Stored...
8
by: r0g | last post by:
Hi There, I'm trying to migrate a locally hosted page from windows to a private Ubuntu development server and one of the key bits of...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.