Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > spawn under windows

Reply
Thread Tools

spawn under windows

 
 
Tieum
Guest
Posts: n/a
 
      09-07-2004
Hello,

To launch a new process under windows I use the spawn command spawnvp

spawnvp(_P_NOWAIT, cmd, ppTab);
with ppTab containing [ /C, myprog.bat ]

myprog.bat does produce output.

If I launch this from within DevStudio 6.0 I see the outbut in the window

If I launh it as a stand-alone program, the cmd window that opens show
nothing ...

Does anybody have any idea about how to solve this ?

Thank you


Tieum
 
Reply With Quote
 
 
 
 
Tieum
Guest
Posts: n/a
 
      09-07-2004
Tieum wrote:
> Hello,
>
> To launch a new process under windows I use the spawn command spawnvp
>
> spawnvp(_P_NOWAIT, cmd, ppTab);
> with ppTab containing [ /C, myprog.bat ]
>
> myprog.bat does produce output.
>
> If I launch this from within DevStudio 6.0 I see the outbut in the window
>
> If I launh it as a stand-alone program, the cmd window that opens show
> nothing ...
>
> Does anybody have any idea about how to solve this ?
>
> Thank you
>
>
> Tieum


If anayone is interessed, I solved this by using _P_DETACH instead of
_P_NOWAIT.


Tieum
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to spawn a process under different user sanket Python 3 07-03-2009 01:28 AM
Logging stdout/stderr/stdin of an spawn process (Open4::spawn) Edgardo Hames Ruby 1 05-06-2008 08:17 PM
Logging stdout/stderr/stdin of an spawn process (Open4::spawn) Ed Hames Ruby 0 04-16-2008 04:21 PM
Spawn a process that runs under an Impersonated user =?Utf-8?B?R3JhbnQgSG9sZG9t?= ASP .Net 2 02-07-2006 10:28 AM
spawn syntax + os.P_WAIT mode behavior + spawn stdout redirection Derek Basch Python 2 01-21-2005 05:37 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57