469,352 Members | 2,057 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,352 developers. It's quick & easy.

'piping' output

Hi,

I want to know if I can 'pipe' output from a program into a python
script. Is that possible? I need to pipe some output at runtime from a
program written in C and I want to parse it/use it in a python script.
I'm new so please bear with me. thanks
Steve

Jul 18 '05 #1
2 1435


Steve wrote:
Hi,

I want to know if I can 'pipe' output from a program into a python
script. Is that possible? I need to pipe some output at runtime from a
program written in C and I want to parse it/use it in a python script.
I'm new so please bear with me. thanks
Steve


Just figured it out using popen2() :)

Steve

Jul 18 '05 #2
Steve <nospam@nopes> writes:
I want to know if I can 'pipe' output from a program into a python
script. Is that possible? I need to pipe some output at runtime from a
program written in C and I want to parse it/use it in a python
script. I'm new so please bear with me. thanks


Use the C library "popen" function.
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Edward Diener | last post: by
2 posts views Thread by Apple Grew | last post: by
3 posts views Thread by bernd wegener | last post: by
3 posts views Thread by Russ Schneider | last post: by
2 posts views Thread by Biggmatt | last post: by
2 posts views Thread by moti | last post: by
3 posts views Thread by noob2008 | last post: by
4 posts views Thread by samit | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.