Running External Programs from Within Python

Dirk Hagemann usenet at mail-2-me.com
Sat Jan 31 23:56:25 CET 2004


RayS wrote:
> Hi Dirk,
> 
>> That is very easy: popen()
>> Check the FAQ and documentation again for popen.
> 
> 
> That reminds me, I was asked if you can open a bi-directional pipe to 
> control an external console program on Windows. A guy has compiled 
> FORTRAN (~4,000 lines of 1980's spaghetti) and wants to add a modern GUI 
> and a front end method to check data.
> Can you both send commands to, and read STDOUT from, a remote console app?
> 
> Ray
> 
> 
I'm not sure if I got the point, but, for example, with popen I can ping 
from the console a computer and read the result.
But sending commands to a remote console is a problem which troubles 
myself in another context (I asked here yesterday).

Dirk



More information about the Python-list mailing list