![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Java with Unix (Redirection + Piping) | fluke_perf | High Level Programming | 3 | 04-30-2008 08:52 AM |
| Piping in UNIX | simo007 | UNIX for Dummies Questions & Answers | 3 | 05-22-2007 11:40 PM |
| Python, HTML, and Unix | davidfrank | UNIX for Advanced & Expert Users | 1 | 05-16-2007 04:28 AM |
| piping | lnatz | Shell Programming and Scripting | 1 | 07-13-2006 11:30 PM |
| Help (Piping ls, tr, cut) | scan | Shell Programming and Scripting | 2 | 02-11-2006 04:40 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
piping from C to python in UNIX
Hi,
I'm trying to wrap my head around piping in C - I've got a small C program that forks and pipes stuff from the child process to the parent process. Currently the child process calls a C program that squirts out random numbers which then pipes the result to the parent process. The parent process reads the pipe and simply prints the random number. What I would like to do is then use this piped integer in a python program. So firstly I think I have to include the python library within the C program. #include <python2.4/Python.h> then call python with: Py_Initialize(); But when I call this the gcc compiler gives me the error: undefined reference to 'Py_Initialize' So I'm guessing that the header file I'm using is incorrect..? the python version I'm using is: Python 2.4.3 (#1, Jun 13 2006, 16:41:18) Thanks. |
|||
| Google UNIX.COM |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|