delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2014/07/01/13:47:32

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Date: Tue, 01 Jul 2014 20:47:15 +0300
From: Eli Zaretskii <eliz AT gnu DOT org>
Subject: Re: Urgent request for help with PythonD
In-reply-to: <7D567493DE25594C848F89F6990859F80284454C9D@AUSX7MCPC103.AMER.DELL.COM>
X-012-Sender: halo1 AT inter DOT net DOT il
To: djgpp AT delorie DOT com
Message-id: <837g3x3ra4.fsf@gnu.org>
References: <7D567493DE25594C848F89F6990859F80284454C55 AT AUSX7MCPC103 DOT AMER DOT DELL DOT COM> <83d2dp3wr2 DOT fsf AT gnu DOT org> <7D567493DE25594C848F89F6990859F80284454C9D AT AUSX7MCPC103 DOT AMER DOT DELL DOT COM>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: <Lowell_Dennis AT dell DOT com>
> Date: Tue, 1 Jul 2014 11:10:44 -0500
> 
> 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 program from within my C program.

'system' does work on MS-DOS.  It suspends the calling program until
the called program finishes.  os.fork is different: it lets both
programs run simultaneously.

> 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 someway to do that with PythonD?

A bit of googling finds this:

  http://stackoverflow.com/questions/3197509/redirecting-stdio-from-a-command-in-os-system-in-python

- Raw text -


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