���μ��� B���� ���ΰԽ� A�� stdin���� ���ڿ��� ������ ������,
��� �ϸ� �dz���?
��, ���μ��� A�� ���� stdin�� �ƴ϶� ���μ��� B�κ��� ��Ǵ� ���ڿ���
ó���ϰ� �ϰ� �ͽ��ϴ�.
pipe�� socket�� �̿��ϸ� �˴ϴ�.
B | A
������ shell���� �ϴ� �Ͱ� �������� �Ϸ��� popen system call��
�����մϴ�.
popen ��� �Ŵ����� ���캸����.
--
������
--
"Perfection is achieved, not when there is nothing more to add,
but when there is nothing left to take away"
- Antoine de Saint-Exupery
��ü������ �����帮��,
���� ��Ʈ�ʾ�ü�κ��� ���α�(Console�κ��� ���𰡸� ó���ϴ� ���α�)��
�Ҵµ�
�� ���α��� ���� ��Ʈ�� �ؾ� �մϴ�.
���� �Ź� Console�� ����� �������� �ϴ� �ʹ� �����ؼ�(��ð� ��Ʈ �ʿ�)
(������� ����ϳ� ������ 1�� �Ŀ� ���� ����� ������ �ϴ� ���,,,)
�� ���α��� ��Ʈ�ϴ� ���α��� ������� �ϴ� ���Դϴ�.
��, ��Ʈ�� ��ü�κ��� ���� ���α��� ������ ���� ��� �����̰�,
(���� �ҽ��� �ֱ� ������ �־��� ��찡 �ƴ϶�� �ǵ��� �������� �������� ��)
������ ���α��� ����� �� ���α��� stdin���� ��Ʈ Ŀ�ǵ带 ��������
�ϴ� ���Դϴ�.
������ ����� �������?
"Chong-Dae Park" <cdp...@jupiter.kaist.ac.kr> wrote in message
news:gvldk7$9ja$1...@news.kreonet.re.kr...
B�� ����DZ� �� A�� �Է��� ���ϴ�.
���� pipe ����̹Ƿ� console�� ���ʹ� flush ����� �ٸ��ϴ�.
console���� �Է��� ���� line ������ flush������, pipe������ block ������
flush�Ǵ� �����Դϴ�.
fflush ������� �ذ��� �� �ֽ��ϴ�.
--
������
--
The story so far:
In the beginning the Universe was created.
This has made a lot of people very angry and been widely regarded
as a bad move.
-- "The Restaurant at the End of the Universe", Douglas Adams
"Chong-Dae Park" <cdp...@jupiter.kaist.ac.kr> wrote in message
news:gvoa2d$ki2$1...@news.kreonet.re.kr...