由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - 请system programming的高手给看看,
相关主题
Help!!What is the problem with these two pipes. Thanks.How to merge stdout and stderr
再次急问: *.tgz 文件怎么解?[转载] how is pipe implemented in UNIX????
双面打印太多文件不能用 ls * OR mv * ?
help on job control commands问题找到了,但是不知道怎么解决, 请帮忙[转载] Cygwin问题请教
wait on line: simple question[转载] 谁能帮我解决这个程序设计问题?
How to use the command history in SUN?Solaris CC compiler 如何从pipe读取文件,而不是从硬盘? (转载)
[转载] 怎么知道别人finger过我呀?how to run background process after logout
help!!! pipe programRe: 怎么在UNIX下面放CD?
相关话题的讨论汇总
话题: int话题: command话题: pipes话题: head
进入Unix版参与讨论
1 (共1页)
w****a
发帖数: 155
1
The following is a function to handle "pipes", the problem is that it works
fine for the case like "yes + | head -15". But it doesn't work for the case
like
" yes + |head -15|cat -n" The program just stuck at the line( I marked in the
program), Could you help me find what cause the problem? Many thanks.
void executePipe(){
int* pids;
int** pipes;
int pipeCount=0;
char** command;
int nextCommand;
if(badPipe()){ // check for bad pipe
cout << "Invalid Command" << endl;
return;
1 (共1页)
进入Unix版参与讨论
相关主题
Re: 怎么在UNIX下面放CD?wait on line: simple question
what's the use of "ta"How to use the command history in SUN?
have u use ";" in pine?[转载] 怎么知道别人finger过我呀?
why cannot run a binary program in csh?help!!! pipe program
Help!!What is the problem with these two pipes. Thanks.How to merge stdout and stderr
再次急问: *.tgz 文件怎么解?[转载] how is pipe implemented in UNIX????
双面打印太多文件不能用 ls * OR mv * ?
help on job control commands问题找到了,但是不知道怎么解决, 请帮忙[转载] Cygwin问题请教
相关话题的讨论汇总
话题: int话题: command话题: pipes话题: head