untethered child process
"John DePasquale" <[email protected]> Tue, 2 Aug 2016 12:52:20 -0400
| Newsgroups | gmane.comp.lang.perl.active-perl |
|---|---|
| Message-ID | <[email protected]> |
This is a multipart message in MIME format.
--===============0149432396==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_00AB_01D1ECBC.B5E0A420"
Content-language: en-us
This is a multipart message in MIME format.
------=_NextPart_000_00AB_01D1ECBC.B5E0A420
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
Hi all,
Is it truly possible to spawn a child process in perl on windows so that the
parent process does NOT wait for the child process to finish before the
parent continues its own processing? I've tried to accomplish this over the
last couple of days using exec, system, wind32::process, proc::background,
fork, and more, on windows server 2008 using perl 5.22.1. For each of these
statements I'm able to spawn a child process that runs a .bat file
successfully, but in each case the parent waits for the .bat file to finish
processing ( it takes about 40 seconds ) before the parent proceeds. I'm
beginning to think that this is not really possible on windows. I have found
dozens of sites that detail usage of each of these statements and I've tried
them all. I can get all of them to launch and complete a child process but I
can't get the parent to NOT wait for completion.
Any guidance is very gratefully appreciated. Thank you.
- john
John DePasquale
Chief Executive Officer
Paradigm Consulting
"Proudly presenting the Vinopedia System"
<http://www.vinopedia.us/> www.vinopedia.us
49 Dalby Street
Newton, MA 02458
Mobile: 617-610-2424
Fax: 617-600-7326
_____
------=_NextPart_000_00AB_01D1ECBC.B5E0A420
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii"><meta name=3DGenerator content=3D"Microsoft Word 14 =
(filtered medium)"><!--[if !mso]><style>v\:* =
{behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1690371659;
mso-list-type:hybrid;
mso-list-template-ids:-1078962674 1710535832 67698691 67698693 67698689 =
67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
{mso-level-start-at:0;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Calibri","sans-serif";
mso-fareast-font-family:Calibri;
mso-bidi-font-family:"Times New Roman";}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:\F0B7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Symbol;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:o;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:"Courier New";}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:\F0A7;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;
font-family:Wingdings;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal>Hi =
all,<o:p></o:p></p><p class=3DMsoNormal>Is it truly possible to spawn a =
child process in perl on windows so that the parent process does NOT =
wait for the child process to finish before the parent continues its own =
processing? I’ve tried to accomplish this over the last couple of =
days using exec, system, wind32::process, proc::background, fork, and =
more, on windows server 2008 using perl 5.22.1. For each of these =
statements I’m able to spawn a child process that runs a .bat file =
successfully, but in each case the parent waits for the .bat file to =
finish processing ( it takes about 40 seconds ) before the parent =
proceeds. I’m beginning to think that this is not really possible =
on windows. I have found dozens of sites that detail usage of each of =
these statements and I’ve tried them all. I can get all of them to =
launch and complete a child process but I can’t get the parent to =
NOT wait for completion.<o:p></o:p></p><p class=3DMsoNormal>Any guidance =
is very gratefully appreciated. Thank you.<o:p></o:p></p><p =
class=3DMsoListParagraph style=3D'text-indent:-.25in;mso-list:l0 level1 =
lfo1'><![if !supportLists]><span style=3D'mso-list:Ignore'>-<span =
style=3D'font:7.0pt "Times New =
Roman"'> =
</span></span><![endif]>john<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal><span =
style=3D'color:#1F497D'>John DePasquale<o:p></o:p></span></p><p =
class=3DMsoNormal><span style=3D'color:#1F497D'>Chief Executive =
Officer<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'color:#1F497D'>Paradigm Consulting<o:p></o:p></span></p><p =
class=3DMsoNormal><i><span style=3D'color:#1F497D'>“Proudly =
presenting the Vinopedia System”<o:p></o:p></span></i></p><p =
class=3DMsoNormal><a href=3D"http://www.vinopedia.us/"><span =
style=3D'color:blue'>www.vinopedia.us</span></a><o:p></o:p></p><p =
class=3DMsoNormal><span style=3D'color:#1F497D'>49 Dalby =
Street<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'color:#1F497D'>Newton, MA 02458<o:p></o:p></span></p><p =
class=3DMsoNormal><span style=3D'color:#1F497D'>Mobile: =
617-610-2424<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'color:#1F497D'>Fax: 617-600-7326</span><span =
style=3D'font-family:"Verdana","sans-serif";color:#1F497D'><o:p></o:p></s=
pan></p><div class=3DMsoNormal align=3Dcenter =
style=3D'text-align:center'><span =
style=3D'font-family:"Verdana","sans-serif";color:#1F497D'><hr size=3D2 =
width=3D"100%" align=3Dcenter></span></div><p =
class=3DMsoNormal><o:p> </o:p></p></div></body></html>
------=_NextPart_000_00AB_01D1ECBC.B5E0A420--
--===============0149432396==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
--===============0149432396==--