473,513 Members | 2,559 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 18514
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
2901
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 on win2k server, and we use PHP and MySQL to...
1
2525
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 backticks or exec or system, I get a cmd windows that...
0
2065
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 using this function and want to leave it running...
6
8365
by: Hal Vaughan | last post by:
I have a script used to find and run Java on a Windows system.  It worked fine on original tests (on a Windows XP system).  It's now running on a Windows 2000 (sp3) system, and it won't work -- the...
13
4391
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 this: <? exec("batch_file.bat"); ?> am i...
5
3612
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 String sPPTOut = MDEPDirStr + sID + ".ppt" Dim p As...
4
8644
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 *nix, it is as easy as putting ampersand "&" at...
2
3998
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 procedures. it is what was used by the company. This...
8
6595
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 functionality (which used to work fine in Windows) was the...
0
7384
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7537
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7099
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7525
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4746
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3233
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1594
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
799
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.