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: To: 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 Content-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 Content-Type: multipart/alternative; boundary="_000_7D567493DE25594C848F89F6990859F80284454C9DAUSX7MCPC103A_" 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

Thanks for the q= uick response.

 

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

&nbs= p;

This is what I am trying to do with Python= D.  I want to be able to execute another command and capture its outpu= t (stdout and stderr).  Is there someway to do that with PythonD?=

 

Th= anks,

 

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 Py= thonD

> From:
> Date: Tue, 1 Jul 2014 10:27:38 -0500
&g= t;
> 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= .

This list is the correct place.

> 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.
>
> Just about everything is working correctl= y, with the exception of one error 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 the subprocess code when it attempts an os.fork() = operation but there is no method named fork on the os object.

The os= .fork method cannot possibly work on MS-DOS, which is a single-process OS.<= o:p>

= --_000_7D567493DE25594C848F89F6990859F80284454C9DAUSX7MCPC103A_--