re: [OT] POSIX stuff

new topic     » goto parent     » topic index » view thread      » older message » newer message

>From: mistertrik at hotmail.com
>How stupid of me! I scrolled straight past a unistd.h function called 
>pipe().
>
>Nevermind, I think I can figure it out now... <slaps self in head>

It seems I spoke too soon...
Apologies for cluttering up a euphoria mailing list with C questions...

I have created the pipe, and forked to get the two separate processes.
How does one go about tying stdin to pipe read end in one process, and tying 
stdout to pipe write end in the other?
Atm it just uses stdout = pipeend[1] and stdout = pipeend[0];, quite 
definitely good programming practice.

On attempting to pipe ls to grep, a segmentation fault occured, but on 
attempting to pipe ls to pico, there was no error, and it worked fine.

I am very confused...
=====================================================
.______<-------------------\__
/ _____<--------------------__|===
||_    <-------------------/
\__| Mr Trick

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu