call other program

Chris Rebert clp2 at rebertia.com
Sun Feb 1 22:37:09 EST 2009


On Sun, Feb 1, 2009 at 7:35 PM, JuanPablo <jabar004 at gmail.com> wrote:
> hi,
>   I have a newbie question.
> In bash is posible call other program, send and recieve message with this.
>
> example:
> $ python  > output << EOF
>> print "hello world"
>> EOF
> $ cat output
> hello world
>
> in python exist some similar ?

See the `subprocess` module -- http://docs.python.org/library/subprocess.html

Cheers,
Chris

-- 
Follow the path of the Iguana...
http://rebertia.com



More information about the Python-list mailing list