ºô­¶¼ÐÃD¡G [C»y¨¥] ½Ð°Ý«ç»òÄdºIpipe«e¤@­Óµ{¦¡ªºstderr?
¡@



ª¾ÃÑ°ÝÃD |¡@
[C»y¨¥] ½Ð°Ý«ç»òÄdºIpipe«e¤@­Óµ{¦¡ªºstderr? µo°ÝªÌ¡G (¡`¡s¡` )_¢~¡ä¢¡ ( ªì¾ÇªÌ 5 ¯Å)¡@
µo°Ý®É¶¡¡G 2009-05-23 18:34:32¡@
¸Ñ¨M®É¶¡¡G 2009-06-06 18:49:08
¸ÑµªÃØÂI¡G 15 ( ¦@¦³ 0 ¤HÃÙ§U )
¦^µª¡G 2 µû½×¡G 0 ·N¨£¡G 20

ºô¤Í¥¿­±µû»ù

100%
( ¦@¦³ 4 ¤Hµû»ù )
[ ÀËÁ| ]
[C»y¨¥] ½Ð°Ý«ç»òÄdºIpipe«e¤@­Óµ{¦¡ªºstderr?


¨Ò¦p Windows ©R¥O¦C¤U,

A.exe | B.exe

B.exe ­n«ç»òÄdºI A.exeªº STD ERR(¼Ð·Ç¿ù»~¿é¥X) ?
2009-05-23 18:35:14 ¸É¥R

§Ú¥Î C scanf ³£¥u¯àŪ¨ì«e¤@­Óµ{¦¡ªºSTDOUT.

2009-05-24 23:01:07 ¸É¥R

¦^µª¸ò·N¨£³£«Üºëªö,
§Ú¬O¦bmake file¸Ì­±¥Îªº,
³Ì¥D­n¬O¦]¬° ­ì¥»make file ¤º¼g

A.exe 2> stderr.log

§Ú·Q¼g¦¨ A.exe | B.exe
µM«á B.exe ¥i¥HÀò±o A.exeªº STDOUT ¸ò STDERR
¦ý¬O¹ê»Ú¤W¥u¯à§ì¨ìSTDOUT

2009-05-24 23:14:10 ¸É¥R

Jacob,

·PÁ±zªº¦^µª,

³o­ÓA | B 2>&1 §Ú¦Û¤v¤]¸Õ¹L
³o¼Ë STDERR ·|¼g¨ì B.exeÀɮפW, ¯}Ãa¤F B.exeÀɮפº®e.

2009-05-24 23:15:24 ¸É¥R

¦³ªÅªº¸Ü½ÐÀ°¦£¦^µª³o­Ó°ÝÃD:

¤@¼Ë¬O¦bmake file ¤ºªº°ÝÃD:
http://tw.knowledge.yahoo.com/question/question?qid=1509052411383

2009-05-26 00:28:32 ¸É¥R

Jacob §Aªº¸Ñªk¥i¯à¬O¹ïªº,
¦ý¬O§Ú¬O¦bmake file ¤º¼gªº,
ÁÙ¥Îdos ªº IF ¥]°_¨Ó:
¨Ò¦p

(IF .... & \
(X.exe ....) & \
(A.exe .... ) & \
(if ERRORLEVEL 1 .... ) & \


«Ü©_©Ç, ³o­ÓERRORLEVEL
­Y¦b (A.exe & echo %ERRORLEVLE% .. )¨D­È ´N¬O0
­Y¬O©ñ¦b ¤U¤@¦Cªº (if ERRORLEVEL ...) ¨D­È´N¬O1

2009-05-28 16:17:50 ¸É¥R

§ó¥¿«÷¦r: A.exe & echo %ERRORLEVEL% .. )

2009-06-01 14:54:37 ¸É¥R

§Ú¬O§â Windows Command Prompt »yªk ¼g¦b makefile ¤W,

¨Ò¦p:


@if /I "$(AA)" EQU "TRUE" \

2009-06-01 14:55:33 ¸É¥R

§Úª¾¹DERRORLEVEL¤£¬OÀô¹ÒÅܼÆ,
¦Ó¬O¤W¤@­Óµ{¦¡µ²§ôªº¶Ç¦^­È.

³Ì¨Î¸Ñµªµo°ÝªÌ¦Û¿ï¡@¦^µªªÌ¡G Jacob Lee ( ¤j®v 4 ¯Å )¡@
¥Nªíª¾ÃѹΡG C/C++µ{¦¡»y¨¥°Q½×¬ã¨s
¾Õªø»â°ì¡G C&C++ | §@·~¨t²Î¡@
¦^µª®É¶¡¡G 2009-05-23 21:33:41
[ ÀËÁ| ]

¦¹ÃDµL¸Ñ¡I
°£«D¹J¨ì±M¬ã Windows OS-Coding ¶W¶W¶W·¥¯µ§Þªº¤H¡I



StdiErr ³q±`¬O©wµ¹ ¿Ã¹õ¡C
¦Ó pipe ¥u¶Ç StdOut µ¹«áªÌªº StdIn
³o¨Ç°Ê§@³£¬O¥Ñ OS °õ¦æ®É³]©wªº¡C
¬JµM OS ¨S¦³¶Ç A ªº¡³¡³µ¹ B¡AB ­n¥h¼´ OS ¸ÌªºªF¦è¡A¥]¬A¡G
1. §Ú¬O³Q­þªFªF pipe ¹L¨Óªº¡]³oªFªF½T©w¦³±o¼´¡I¦ýµ´¹ï¬O OS dependent¡I¡^
2. ¨ºªFªFªº StdErr ¦b­þ¡H
3. «ç»ò§ï StdErr¡]°ÝÃD¬O¡G§ï¤F¤£¤@©w¦³®Ä¡I¡^



¦Ó¡A¥t¤@­Ó®Ú¥»©Êªº°ÝÃD¬O¡G
Pipe ªº©w¸q¬O¥­¦æ°õ¦æ¡I
MS-DOS ¨ì 6.22 ¥H«e¡A³£¬O°²¥­¦æ¡F
¦ý¡A¨Æ¹j¤@¸U¦~¤F¡A²{¦bªº Windows À³¸Ó¤w¸g¬O¯u¥­¦æ¤F¡I



µL½×¯u°²¡AB ¤£¤@©w¯à¦b A ¦³ StdErr «e¡A´N§ï±¼ A ªº StdErr ªº³]©w¡I
¤×¨ä¬O¦b°²¥­¦æ¤U¡A¨º¬Oµ´¹ïµL¸Ñ¡I
­Y¬O¯u¥­¦æ¡A¤]¤£¯à«OÃÒ¡I



©Ò¥H¡A½T©w¦¹ÃDµL¸Ñ¡I



¡×¡@¡×¡@¡×¡@¡×



¦bµ{¦¡³]­pªº»â°ìµL¸Ñ¡A¤£¥Nªí¦b¹q¸£ªº»â°ìµL¸Ñ¡I



§A­n§äªº¬O OS Command Shell¡I
¦³ªº Shell ¦³¤ä´©¡I
¤£¦Pªº Shell ¨Ï¥Îªº¤èªk¤£¦P¡A¦p¡G 2| ©Î &|
¤£¹L¡A³o¨â©Û¦b XP ªº Shell ½T©w¤£¯à¥Î¡I



¡×¡@¡×¡@¡×¡@¡×



©Ò¥H¡A§A¤£¥Î¦A¨ì C ªºµ{¦¡»â°ì§ä¡I
§ä¨ì¤F§A¥i¯à¤]¬Ý¤£À´¡I
¬ÝÀ´¤F¤]¤£Ã­©w¡A¤]¦³ÄY­«ªº ¥iÄâ©Ê ªº°ÝÃD¡I



§ä Shell ªºª±®a¤ñ¸û§Ö¡I


2009-05-23 21:42:41 ¸É¥R

­Y§A¨S­n¦P®É°õ¦æªº®ÄªG¡AXP ­Ë¬O¥i¥H§@¹ú¡I

§Ú§Ë¤@¤U¡A¦A¸Éµ¹§A¡C

2009-05-23 22:02:43 ¸É¥R

A > t.txt 2>&1
B < t.txt
del t.txt

³o¼Ë´N¥i¥H¤F

2009-05-23 22:08:53 ¸É¥R

­èµo²{¤@­Ó¯«©_ªº¥Îªk¡A§A¸Õ¸Õ¬Ý¡I
¦pªG¦X¥Î¡AÀ³¸Ó¤ñ¤W­zªk§ó¦n

A | B 2>&1

2009-05-24 07:45:25 ¸É¥R

¥i¥H½Ð DeeR
¡@¸Ô¬ÝÃD¥Ø
¤Î
¡@©Ò¤Þ¥Îªº¨º½g

¦AªZÂ_¦a»¡¡G
¡@¡©µ´¹ï¡ª¦³¸Ñ
¶Ü¡H


¨â¦~«e¡H¤­¦~«e§Ú´N¦b°µ¥­¦æ¹Bºâ¤F¡A·|¤£ª¾¹D sryang »¡ªº¨º­Ó¤èªk¡H
¡]·íµM¡A¥¦­Ì¥u¬O¬ÛÃö¡G
¡@¡@¥­¦æ¹Bºâ¤£­­¥Î¦b¨º¤èªk¡F
¡@¡@¨º¤èªk¤£­­¥Î¦b¥­¦æ¹Bºâ¡C
¡^

2009-05-25 06:31:54 ¸É¥R

¡×¡@¡×¡@¡×¡@¡×

¤£¦n·N«ä¡A¬O§Úªº¿ù¡I¡@§Ú¥´¿ùªF¦è¡I

¤£¹L¡A§Ú®Ú¾Ú§Ú¥´¿ùªº¡A
¡@¨S§â B µ¹·´¤F­C¡I
¡@¥u¬O¨S¹F¨ì®ÄªG¡I
§Æ±æ¨S³y¦¨§Aªº¨aÃø¡I

§A¬O¤£¬O¥´¦¨¤F
¡@A.exe > B.exe 2>&1
§Ú»¡¿ùªº¬O
¡@A.exe | B.exe 2>&1
©Î
¡@A | B 2>&1
¡×¡@¡×¡@¡×¡@¡×

¥¿½TªºÀ³¸Ó¬O¡G

A 2>&1 | B

§A¸Õ¸Õ¬Ý¡AÀ³¸Ó
¡@¤£·|§â B µ¹·´¤F
¡@¯à¥¿½T¦a§â A ªº StdOut ¤Î StdErr ³£¶Çµ¹ B ªº Stdin

2009-05-26 12:58:17 ¸É¥R

ErrorLevel ¤£¬OÀô¹ÒÅܼơI

ª©¤jªº
(A.exe & echo %ERRORLEVLE% .. )
·|¬O 0 ªº­ì¦]¡A´N¬O¦]¬° ¨S¦³³oÅܼơA§â¥¦·íÅܼƦL¡A·íµM¬O 0

¦Ó©ñ¦b ¤U¤@¦Cªº (if ERRORLEVEL ...) ¨D­È´N¬O1
¦]¬° ·N¨£ 017 »¡ªº¨º¨ÇªF¦è¡A
¡@¨ä¤¤¦³¤H ªº return code (main function ªº return ­È) ¬O 1

2009-05-26 16:57:59 ¸É¥R

Makefile §Ú¤]ª±¹L¦n´X¦~¡A¥¦ªº½T©M bat ¦³«Ü¤jªº¤£¦P¡C

¦Ü©óª©¤j¬°¦ó·|¦b makefile ¸Ì¥Î¤F pipe ©M & µ¥¡A´N­n°Ý¥L¤F¡C
©Î³\ª©¤j¬O¥H bat ªº¤è¦¡¡A¾Þ§@Ãþ¦ü makefile ªº®ÄªG¡C

§â ErrorLevel ÅÜÀô¹ÒÅܼƪº°µªk¡A§Ú¤]¼g¹L¼Æ¦¸¡F
ÁÙ°µ¹L§ó½ÆÂøÅܤơA¦p¡G¶Ã¼Æ¡BÅܦ¨ Menu¡B¥Î¡ô¡õ¡ö¡÷²¾°Ê¥ú´Îµ¥¡C

¡×¡@¡×¡@¡×¡@¡×

ª©¤j¡A­Y§A­n§âErrorLevel Åܦ¨Àô¹ÒÅܼơA­nª`·N§Aªº«÷¦r¡I
§A¥Ø«e©ñ¤W¨Óªº¡A¦r¦³«÷¿ù¡C
¦ý¡AM$ ªº OS ¸Ì¡AÀô¹ÒÅܼƬO¨S¦³ ErrorLevel ªº¡C
¡]°£«D³Ìªñ¥¦¤S·s©µ¦ù¤F¡C¦Ü¤Ö¡AVestaÁÙ¨S¦³¡^

2009-06-01 15:47:56 ¸É¥R

¤j³¡¥÷ªº makefile ¦³¥¦¦Û¤vªº»yªk¡A¤£¬O³æ³æ¦Y OS ªº command shell ªºªF¦è¡C

¦pªG¬O¦Y OS ªº command shellªº»yªk¡A¥¦·|Åܦ¨ OS dependent ªºªF¦è¡A¤£¤Ó¦n¥Î¡I

2009-06-02 11:24:12 ¸É¥R

Áç¤l©ñ¨ì¥Ë´µÄl¤W¡A¯à¤£¯à®³¨Ó¯NªF¦è¡H¡@¥i¥H¡I
¦n¥Î¶Ü¡H¡@·íµM¤£¡I
¯à¥Î¶Ü¡H¡@·íµM¥i¡I

§A­Y¦³¯N½c¡A¬°¦ó­n¥ÎÁç¤l¡H


¼gµ{¦¡¡þ¾Þ§@¹q¸£¡A¤]¬O¤@¼Ë¡I
§A­n¦n¼g¤¶­±¡A¦³¡þ·| VB, Java¡A¬°¦ó­n¥Î C¡H
C ªº±Mªø¡A´N¤£¬O¦b°µ¤¶­±¡I

makefile ¤]¤@¼Ë¡I
´Nºâ§A¤µ¤Ñª±¥X¨Ó¡A
¡@1. ´«¥Î¤U¤@ª©ªº make¡B
¡@2. ®³¥h¥t¤@ºØªº make¡B
¡@3. ¨â¦~«á¥Î¦P¤@ºØ¦P¤@ª©ªº make
³£¤£¤@©w·|¦¨¥\¡I¡] 3. ¦p¼Ó¤UÁ¿ªº¡G§A§Ñ¤F¡I¡^


ÁÙ¬O¤£­n°µ³o¼Ëªº¨Æ§a¡I
§â®É¶¡ªá¦b¸û´¶¹M¡Bªø¤[¡B¦³¥Îªº¨Æ¤W¡C
¡]½Ð·Q·Q¡A¬°¦ó¤@°ïªF¦è¦bÁ¿ ¥iÄâ©Ê¡þ¬Û®e©Ê¡H¡^

µo°ÝªÌµû»ù¡G
·PÁ±zªº¼ö¤ß¦^µª,
¨ü¯qµL½a
¨ä¥L¦^µª(1) ·N¨£(20)
001
¦^µªªÌ¡G DeeR ( ªì¾ÇªÌ 3 ¯Å )¡@
¦^µª®É¶¡¡G 2009-05-24 00:06:22
[ ÀËÁ| ] ¨â¦~«e ´N¦³¤H°Ý¹L³oÃþªº°ÝÃD¤F.

http://delphi.ktop.com.tw/board.php?cid=30&fid=69&tid=90571

§A¥i¥H¥h¬Ý¬Ý.
sryang ¦³´£¨Ñ¸Ô²Óªº»¡©ú.

windows XP ¥Îªº.
µ´¹ï¦³¸Ñ. 2009-05-26 07:56:35 ¸É¥R

ERRORLEVEL ³o­ÓªF¦è, À³¸Ó¬O¤@­Ó"Àô¹ÒÅܼÆ", §A¥ÎÀô¹ÒÅܼƪº¤èªk¥h¸Õ¬Ý¬Ý§a.

2009-05-26 14:00:00 ¸É¥R

¤£¬OÀô¹ÒÅܼơA´N§â¥¦Åܦ¨Àô¹ÒÅܼÆÅo¡C
http://www.robvanderwoude.com/errorlevel.php
³oÃ䦳±Ð«ç»òÅÜ¡C

¦Ü©ó¡Cµo°ÝªÌ»¡­n©ñ¦b Makefile ùØ¡C½T¹ê¡C¥¦ªº¼gªk·|¸ò§A¥Î bat ªk¤£¤@¼Ë¡C
make ¬O§_¥i¥H¹³ bat ¨º¼Ë¾Þ§@ errorlevel ±o­n´ú¸Õ¬Ý¬Ý¤~ª¾¹D¡C
¦Ó¥B¡C§Úª±¹Lªº3-4ºØ make ©Ò¥Îªº»yªk¡A ÁÙ¬O¦³ÂI®t²§ªº¡C

2009-06-01 19:44:59 ¸É¥R

°ÝÃD¬O......·í§Aªº make ¥X²{ error ®É.²z·í­n°±¤U¨Ó¤F§r.
­n¬O¦A make ¤U¥h.¤w¸g¬OµL·N¸qªº¨Æ¤F.

¦pªG§A¬O­n§Q¥Î make ¨Ó°µ if case..... ªº¨Æ±¡.
¨º¬O¤£¬OÀ³¸Ó­nÅܦ¨­n¤À¶}¼g¦¨¤£¦Pªº target?

make ¦³ make ªº¥Øªº.¥¦¬O­nÅý§A°µ±M®×ºÞ²z¦nºÞ.

bat(shell) ¦³ bat(shell) ªº¥Øªº. ¥¦­Ì¬OÅý§A¬Ù±¼­«ÂЪº°Ê§@ªº.

ªá¤Ó¦h®É¶¡¦b°µ³oºØ"¶W¤H"ªº°Ê§@. ¥u¬OÅã±o§A"¦n§Q®`"(¬O¤£¬O¯u§Q®`¤£ª¾¹D.)
¦ý¬O.¹j¤@¬q®É¶¡«á.§A¤S§Ñ¤F·í®Éªº¼gªk, ºûÅ@¤W´N·|¥X°ÝÃD¤F.

ÁÙ¬O¥Î¼Ð·Ç°Ê§@´N¦n§a.

1

001
·N¨£ªÌ¡G novus ( ±M®a 5 ¯Å )¡@
¾Õªø»â°ì¡G C&C++ | ª«²z¡@
µoªí®É¶¡¡G 2009-05-23 23:37:50
[ ÀËÁ| ] ¦³¬Û·íµ{«×»Ý­n¾a case by case

¤§«e¦³¼g¹L¤@­Ó¥i¥H©Mgdb¤¬°Êªº

­ìc++ class¦b¦¹
http://www.phpbbserver.com/graphicsparalle/viewtopic.php?p=636&mforum=graphicsparalle#636
§Úªº°µªk¬O§Q¥Îwindows api
¦b±Ò°Ê¥Øªºprocessªº®É­Ô¶¶«K§âstdout©Mstderr¸j¦b¤@°_¡@
002
·N¨£ªÌ¡G novus ( ±M®a 5 ¯Å )¡@
¾Õªø»â°ì¡G C&C++ | ª«²z¡@
µoªí®É¶¡¡G 2009-05-23 23:43:15
[ ÀËÁ| ] ³o¬O»Ý­n¤ñ¸û¤jªº¤¬°Ê¥\¯à¡A©Î¬O¹ïchild process¦³¤ñ¸û¤j±±¨îÅvªº®É­Ô¤~»Ý­n³o»ò³Â·Ð

§_«hÀ³¸ÓºÉ¶q¨Ï¥Îdos¥»¨­ªºpipe­«¾É¡@
003
·N¨£ªÌ¡G Jacob Lee ( ¤j®v 4 ¯Å )¡@
¾Õªø»â°ì¡G C&C++ | §@·~¨t²Î¡@
µoªí®É¶¡¡G 2009-05-24 07:40:54
[ ÀËÁ| ] §Ú»{¬° ¦^µªªÌ 002 DeeR http://tw.knowledge.yahoo.com/my/my?show=AE03201838 »~¸Ñ¤Fª©¤jªºÃD·N¡C

¡©ÄdºI¡ª pipe«e¤@­Óµ{¦¡ªº stderr
¤]´N¬O»¡¡G¤£¬O¥Ñ A ²£¥Í pipe µ¹ B

¥L©Ò¤Þªº¨º½g¡A¥Îªº¤]¬O shell ­«·sÂà¦V¡AÁÙ¤ñ§Ú¼gªº¤èªk¤Ö¡I
¦Ó¨ä¤¤»Pµ{¦¡¦³Ãöªº¡A¼gªº¬O¡y¥Ñ A ²£¥Í pipe µ¹ B¡z

©Ò¥H¡A¥L»¡ªº¡©windows XP ¥Îªº.¡@µ´¹ï¦³¸Ñ.¡ª¡A
¦bª©¤jªº¤å·N¤W¡A¬Oµ´¹ï¤£¿ù»~ªº¡I

¡×¡@¡×¡@¡×¡@¡×¡@
004
·N¨£ªÌ¡G Jacob Lee ( ¤j®v 4 ¯Å )¡@
¾Õªø»â°ì¡G C&C++ | §@·~¨t²Î¡@
µoªí®É¶¡¡G 2009-05-24 07:41:24
[ ÀËÁ| ] (1) ¦Ó Novus ¼gªº¤]¬O¡y¥Ñ A ²£¥Í pipe µ¹ B¡z¡C
(2) ¦ý¡A¥L©ú»¡¡G¡©§_«hÀ³¸ÓºÉ¶q¨Ï¥Îdos¥»¨­ªºpipe­«¾É¡ª

®Ú¾Ú (1)¡A§Ú¼gªº¡©µ{¦¡»â°ìµL¸Ñ¡ª¤´¬O¥¿½Tªº¡I
®Ú¾Ú (2)¡A©M§Ú¦^µªªº«á¥b¡G«Øijª©¤j¥Î shell ¬O¤@­Pªº

¥t¥~¡Ashell ¬JµM¦³´£¨Ñ¡A¦ó¥²¥t´M¥¦ªk¡H

¦A¨Ó¡A­n¬O µLªk¨ú±o A ªº source coe¡A
¡y¥Ñ A ²£¥Í pipe µ¹ B¡z´N§¹¥þ¦æ¤£³q¡I

©Î¬O¡AA¤w¼g±o«Ü¡D¡D¡D¡A­n§ï¥Ñ A «Ø Pipe ¡D¡D¡D·|²£¥Í¤@°ï Bug¡I
©Ò¥H¡A¤´±j¯P«Øij¡G¨Ï¥Î§Ú¼gªº¤èªk¥h­«¾É¡I
¤£­n¥Î¡y¥Ñ A ²£¥Í pipe µ¹ B¡z¡I¡@
005
·N¨£ªÌ¡G Jacob Lee ( ¤j®v 4 ¯Å )¡@
¾Õªø»â°ì¡G C&C++ | §@·~¨t²Î¡@
µoªí®É¶¡¡G 2009-05-24 07:41:50
[ ÀËÁ| ] °£«D¡A§A­n¬ã¨sªº¡A¬O ¥Ñµ{¦¡«Ø pipe ¡]ªº¥­¦æªk¡^¡C
¤£µM¡A¦p Novus ©Ò¨¥¡G¤£«Øij¦Û¤v¼g pipe¡I

¤]´N¬O»¡¡G­n¤£­nª©¤jÃD¥Ø¼g¿ù¡A
¡@¡y¥Ñ A ²£¥Í pipe µ¹ B¡z
¬O§¹¥þ¿ù»~ªº¤èªk¡G
¡@1. ¤£¦XÃD·N
¡@2. ¤£¯à¸Ñ¨M®³¤£¨ì A ªº source ªºª¬ªp
¡@3. ­nªá¤@¨Ç¤u§@®É¶¡¼g¦¨
¡@4. ¤èªk½ÆÂø¡A¦ýµ{¦¡§ïÅܤϦӸû©Ê¤Ö
¡@5. µo®i¹Lµ{·|²£¥Í¤@°ï bug¡I


°Ñ¦Ò¸ê®Æ¡G¤­¦~¥H¤W¥­¦æ¹Bºâ¬ã¨s¡@
007
·N¨£ªÌ¡G Jacob Lee ( ¤j®v 4 ¯Å )¡@
¾Õªø»â°ì¡G C&C++ | §@·~¨t²Î¡@
µoªí®É¶¡¡G 2009-05-24 08:19:01
[ ÀËÁ| ] ³ºµM¦³­«¤j¿ù¦r¡I

·N¨£ 003 ³Ì«á¤@¥y
¡@¦bª©¤jªº¤å·N¤W¡A¬Oµ´¹ï¡©¤£¡ª¿ù»~ªº¡I
À³¸Ó¬O
¡@¦bª©¤jªº¤å·N¤W¡A¬Oµ´¹ï¡©¡@¡ª¿ù»~ªº¡I

·N¨£ 005 ¤¤¶¡
¡@¤]´N¬O»¡¡G­n¤£¡©­n¡ªª©¤jÃD¥Ø¼g¿ù¡A
À³¸Ó¬O
¡@¤]´N¬O»¡¡G­n¤£¡©¬O¡ªª©¤jÃD¥Ø¼g¿ù

¡×¡@¡×¡@¡×¡@¡×

®Ú¾Úª©¤jªºÃD·N¡G¡yB ÄdºI A¡z¡A¤£¬O
¡@A ²£¥Íµ¹ B
¡@¦³¤°¤èªk¥i¥HÅý B ª¾¹D A ªº
ÄdºI¡A¥»¨­¥Nªíªº´N¬O¤£¬O¡©·¥¡ª¤¤³W¤¤¯xªº¤èªk¡I
¤]´N¬O»¡¡GA ²£¥Í pipe µ¹ B¡A´N®Ú¥»¤£¬O¡©B¡ª¡©ÄdºI¡ªA

¦Ó¡AA ²£¥Íµ¹ B¡A­Y¯à¨ú±o A ªº code¡A¥u­n§â stderr ´«¦¨ stdout ´N¦n¤F
©Ò¥H¡A«Ü©úÅã¡Gª©¤j°Ýªº¡A¤£¬O ¥Ñ A ²£¥Í pipe µ¹ B¡@
008
·N¨£ªÌ¡G Jacob Lee ( ¤j®v 4 ¯Å )¡@
¾Õªø»â°ì¡G C&C++ | §@·~¨t²Î¡@
µoªí®É¶¡¡G 2009-05-24 08:20:55
[ ÀËÁ| ] ¼g·N¨£ 003 ~ 005 ®Éº|¤Þ¡GNovus ¤]»{¬°¡G¥Ñ A ²£¥Í pipe µ¹ B ¬O case by case ªº§@ªk¡C

¦ÓÃD¥Ø¡G¡©ÄdºIpipe«e¤@­Óµ{¦¡ªºstderr¡ª
¤Î¤º¤å¡G¡©B.exe ­n«ç»òÄdºI A.exeªº STD ERR¡ª
¤G«×ªí©ú¡G¤£¬O A ²£¥Íµ¹ B


©Ò¥H¡A¦^µªªÌ 002 ±j¶g¡©µ´¹ï¡ª¦³¸Ñ¡A¦ü¥G¬O¹ï
¡@ÃD¥Ø
¡@§Úªº¦^µª
¡@sryang ªº§@ªk
¡@OS ¹B§@
¤£¤Ó¤F¸Ñ¡@
009
·N¨£ªÌ¡G novus ( ±M®a 5 ¯Å )¡@
¾Õªø»â°ì¡G C&C++ | ª«²z¡@
µoªí®É¶¡¡G 2009-05-24 09:30:59
[ ÀËÁ| ] ¸É¥R¤@¤U

§Úªºµ{¦¡¥Ü½dªº´N¬O¥Î B ÄdºI A ªº pipe¡A§¹¥þ¤£»Ý«I¤J¦¡ªº°µªk¡A¤]´N¬O»¡¤£¥²°Ê¨ì A ªº source code¡C

°ò¥»¤W³o©M Windows¤Uªº­«¾É§¹¥þ¬Û¦P¡A¥u¬O±q¤ñ¸û©³¼hªº¦a¤èµÛ¤â¡A¦]¦¹¥i¥H°µ¨ì¤ñ¸û²Ó·Lªº±±¨î¡C¡@
010
·N¨£ªÌ¡G novus ( ±M®a 5 ¯Å )¡@
¾Õªø»â°ì¡G C&C++ | ª«²z¡@
µoªí®É¶¡¡G 2009-05-24 09:37:59
[ ÀËÁ| ] ¬°¤°»ò»¡¦³¬YºØµ{«×¤W»Ý­ncase by case¡H

¦]¬°¨Ã¤£¬O©Ò¦³¥Îconsoleªºµ{¦¡³£¨Ï¥Î¼Ð·Çªºpipe¡A¹³§Ú¤W­±ªºµ{¦¡­n§ì cmd¡Bping¡Bgcc¡Bgdb ªº¿é¥X³£¨S°ÝÃD¡A¦ý¬O¹³ telnet ´N¨S¿ìªk°Õ¡C

¦]¬°telnet­nµe±m¦â¤å¦r¡A´N¤£¬O¥Î¼Ð·Çªºpipe¡@
011
·N¨£ªÌ¡G DeeR ( ªì¾ÇªÌ 3 ¯Å )¡@
µoªí®É¶¡¡G 2009-05-24 09:59:59
[ ÀËÁ| ] J ¤j. ¤]³\±z¤­¦~«e¤~¦bª±¥­¦æ. ¤p§Ì¤]ª¾¹D, ±zªº¥\¤O¤£¿ù.
¤£¹L. ¦³®É­Ô. ±z¤]­nÅé·|¤@¤U, ¤UÀYªº³o¨Ç¥­¥Á¦Ê©mªº­W§r.
¥L­Ì¬O¦³°ÝÃD¤£·|°Ý. ¤£·|¥Î"¥¿³W"ªºªí¹F¤è¦¡¨Óªí¹F°ÝÃD.
©Ò¥H, ¤£­n§â¤@­Ó²³æªº°ÝÃD, ·Q¨º»ò½ÆÂø.
³o´N¹³¤G¤Q´X­Ó³Õ¤h, ¥h¦Òªìµ¥¦Ò, ¨S¥b­Ó¦Ò¤W¤@¼Ë. ¨ä¹ê, ¨º¨Ç³Õ¤h¯uªº¤£À´¶Ü?
¤]³\, ¦b¬Y¨Ç¤è­±. À´±o¤ñ¥XÃDªº¦h. ÁÙª¾¹DÃD¥Ø«ÊÂꤣ§¹¥þ,
·|¦³¦¹ÃDµL¸Ñ©Î¬O¨ÇÃD¦h¸Ñ¥X²{¦b³æ¿ï.
¨º·íµM¦Ò¤£¤WÅo.

§äª¾ÃÑ¡@ ·j´M¥þ³¡ ·j´M·Ð´o¡@¶i¶¥·j´M ¶®ªê¸ê°T ª©Åv©Ò¦³ (c) 2011 Yahoo! Taiwan. All Rights Reserved. ¡u¥»ªA°È³]¦³ºÞ²z­û¡v ªA°È±ø´Ú Áô¨pÅv¬Fµ¦
ª¾ÃÑ+ ¤§°Ýµª¤º®e¬O¥Ñ°Ñ»PYahoo!©_¼¯ª¾ÃÑ+ ¤§ºô¤Í´£¨Ñ¡A¶È¨Ñ°Ñ¦Ò¡AYahoo!©_¼¯¤£«OÃҨ䥿½T©Ê¡C




¦^ ¡P ·d©Ç¹q¸£°ò¥»±`ÃÑ ³o¤@½g¤å³¹«Ê­±


¥»¤å±i¶KªÌ¡G®Õ®ÕÂF¡e±i¶K®É¶¡¡G¥Á°ê100¦~2¤ë21¤é¡]¬P´Á¤@¡^8ÂI56¤À¡f | ¼g«Hµ¹®Õ®ÕÂF

³¡¸¨®æ­º­¶


¾Ç²ßªº¬G¶m­º­¶
¥»¯¸¤½§i¡G¡e±z¶V»Ý­n§Ú­Ì¡A§Ú­Ì´N¶V¦³³Ð·N¡f ¥»¯¸»¡©ú®Ñ¡G¡eµo²{¬G¶mÁÙ¦³§ï¶iªº¦a¤è¡A½Ð¨Ó«H§i¶D­ì¤B­Ì¡f
Æ[¹îÀ³¥Î¾Ç²ßÂI¼Æ ¡G¡e«¥ªº¬G¶m¦³±zªº°Ñ»P¡A·|¨Ï§Ú­Ì¦³§ó¤jªºµo´§ªÅ¶¡¡A®i²{§óÂ×´Iºë±mªº¾Ç²ßµe­±¡f ¡e´Á«ÝÂǥѵL»Ùêºô­¶³]­p¡A¯àÅýµø»Ù¤pªB¤Í§ó·R¬Ý®Ñ¡B§ó·R¼g§@¥B§ó·R¾Ç²ß¡f¡Gª¼¥Î¹q¸£¡u¤ß±o¤À¨É¡v
¡e¬°¤FÅý§Ú­Ì¦³°®²bªº¾Ç²ßÀô¹Ò¡A½Ð¤Å¥ô·N¦b¥»¯¸´²¼½°Ó·~¼s§i»P¤£¦Xªk¤å¥ó©ÎÁpµ²¡f¡G¥»¯¸«Å¥Ü