PDA

View Full Version : Making a terminal open other Terminals!



Rauldinho
12-07-2004, 04:09 PM
Hi, i need some help on this, im trying to make a C code under linux that when i run it in the terminal ask me a number (#) and then opens # terminals. And i need to stablish a way for them to communicate, so the consoles that i opened can send information to the original one. Any idea or clue of how to acomplish this or what should i look for to learn about it, i would really appreciate it. Thanks! :confused:

Salem
12-07-2004, 04:37 PM
fork
execl
pipe
dup2

These are the functions you need for creating additional processes, and establishing a communication link between them

Rauldinho
12-07-2004, 05:00 PM
hi salem, those functions i know, but i was talking about making another terminal appear from which i can input some data that the original terminal can read. Thanks for the interest! any more ideas?

quzah
12-07-2004, 05:23 PM
How about reading the man pages for the functions given?

Quzah.