delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2014/07/01/12:10:54

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
X-LoopCount0: from 10.170.28.40
X-IronPort-AV: E=Sophos;i="5.01,582,1400043600";
d="scan'208,217";a="543052044"
From: <Lowell_Dennis AT dell DOT com>
To: <djgpp AT delorie DOT com>
Date: Tue, 1 Jul 2014 11:10:44 -0500
Subject: RE: Urgent request for help with PythonD
Thread-Topic: Urgent request for help with PythonD
Thread-Index: Ac+VRkIUY5xIu9+JQ9mpaH+lhUg2EgAABbtw
Message-ID: <7D567493DE25594C848F89F6990859F80284454C9D@AUSX7MCPC103.AMER.DELL.COM>
References: <7D567493DE25594C848F89F6990859F80284454C55 AT AUSX7MCPC103 DOT AMER DOT DELL DOT COM>
<83d2dp3wr2 DOT fsf AT gnu DOT org>
In-Reply-To: <83d2dp3wr2.fsf@gnu.org>
Accept-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-titus-version: 3.5.29.3
x-tituslabs-classifications-30: TLPropertyRoot=Dell;Classification=No
Restrictions;Sublabels=;
x-tituslabs-classificationhash-30: VgNFIFU9Hx+/nZJb9Kg7IsdeOUssiXGkqenmche4YAhYUVErv6/BCmWIaaK4/XsRslA4AlXc/y9rrGrn/u87RuHcmWyi1sQABkQz/Qm2ES2rC7E6tiMnIOz+Hi0lPrrj4AMvpoYSVUeIS/svNARtFyTa+xyo1rjYQeeeqPDl7PNfNNXDgE8hNo8sWMbjNnkXZmeCZciX9xtJoMcDhNjjiOIXBPdX6VJX0BPn2qZqgM4=
x-titusconfig: 1.4AMER
acceptlanguage: en-US
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

--_000_7D567493DE25594C848F89F6990859F80284454C9DAUSX7MCPC103A_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Thanks for the quick response.

I understand that MS-DOS is not a multi-threaded OS.  However, in C, for ex=
ample, I can use the system() call to run another program from within my C =
program.

This is what I am trying to do with PythonD.  I want to be able to execute =
another command and capture its output (stdout and stderr).  Is there somew=
ay to do that with PythonD?

Thanks,

Lowell


-----Original Message-----
From: Eli Zaretskii [mailto:eliz AT gnu DOT org]
Sent: Tuesday, July 01, 2014 10:49 AM
To: djgpp AT delorie DOT com
Subject: Re: Urgent request for help with PythonD

> From:
> Date: Tue, 1 Jul 2014 10:27:38 -0500
>
> I am not sure if I am sending this request to the correct mailing list or=
 not because I cannot seem to locate one specifically for PythonD.

This list is the correct place.

> I have created a bootable USB key with FreeDOS on it and PythonD 2.4.2 r =
1.0 binary I downloaded from CADDIT.net.
>
> Just about everything is working correctly, with the exception of one err=
or that I am getting and cannot seem to get around ...
>
> When I try to use subprocess.Popen() I get an error from the bowels of th=
e subprocess code when it attempts an os.fork() operation but there is no m=
ethod named fork on the os object.

The os.fork method cannot possibly work on MS-DOS, which is a single-proces=
s OS.

--_000_7D567493DE25594C848F89F6990859F80284454C9DAUSX7MCPC103A_
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-micr=
osoft-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"Micros=
oft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:SimSun;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:"\@SimSun";
	panose-1:2 1 6 0 3 1 1 1 1 1;}
/* 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
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri","sans-serif";
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;
	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;}
--></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 vli=
nk=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal>Thanks for the q=
uick response.<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p c=
lass=3DMsoNormal>I understand that MS-DOS is not a multi-threaded OS.&nbsp;=
 However, in C, for example, I can use the system() call to run another pro=
gram from within my C program.<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbs=
p;</o:p></p><p class=3DMsoNormal>This is what I am trying to do with Python=
D.&nbsp; I want to be able to execute another command and capture its outpu=
t (stdout and stderr). &nbsp;Is there someway to do that with PythonD?<o:p>=
</o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMsoNormal>Th=
anks,<o:p></o:p></p><p class=3DMsoNormal><o:p>&nbsp;</o:p></p><p class=3DMs=
oNormal>Lowell<o:p></o:p></p><p><br><br>-----Original Message-----<br>From:=
 Eli Zaretskii [mailto:eliz AT gnu DOT org]<br>Sent: Tuesday, July 01, 2014 10:49 =
AM<br>To: djgpp AT delorie DOT com<br>Subject: Re: Urgent request for help with Py=
thonD<br><br>&gt; From: <br>&gt; Date: Tue, 1 Jul 2014 10:27:38 -0500<br>&g=
t; <br>&gt; I am not sure if I am sending this request to the correct maili=
ng list or not because I cannot seem to locate one specifically for PythonD=
.<br><br>This list is the correct place.<br><br>&gt; I have created a boota=
ble USB key with FreeDOS on it and PythonD 2.4.2 r 1.0 binary I downloaded =
from CADDIT.net.<br>&gt; <br>&gt; Just about everything is working correctl=
y, with the exception of one error that I am getting and cannot seem to get=
 around ...<br>&gt; <br>&gt; When I try to use subprocess.Popen() I get an =
error from the bowels of the subprocess code when it attempts an os.fork() =
operation but there is no method named fork on the os object.<br><br>The os=
.fork method cannot possibly work on MS-DOS, which is a single-process OS.<=
o:p></o:p></p></div></body></html>=

--_000_7D567493DE25594C848F89F6990859F80284454C9DAUSX7MCPC103A_--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019