ChinaUnix.net
相关文章推荐:

ClientAbortException javanetSocketExceptionBroken pipe

mkfifo pipe while read do read inputCmd eval $inputCmd done <pipe 在网上看到一段这样的pipe的code。自己试验了,没有什么结果。 请问shell的pipe有什么作用,可以用temp file代替吗。 shell的pipe和c语言的pipe有什么区别

by fufelixzh - Shell - 2013-01-03 17:58:47 阅读(1275) 回复(3)

相关讨论

/*the parent and child process comminucates through the pipe the child process write data to pipe the parent process read data from pipe */ #include #include #include #include #include #include #include #define BUF_SIZE 511 int main(int argc,char **argv) { char buffer[BUF_SIZE+1]; int fd[2];/*pipe file descriptor*/ if(argc!=2) { fprintf(stderr,"Usage:%s string\n",argv[0]); return 0; } /*cr...

by creatory - Linux文档专区 - 2008-12-12 19:27:24 阅读(779) 回复(0)

进程间通讯 1 pipe1.c #include stdio.h> #include unistd.h> void main() { FILE * in_file; int count = 1; char buf[80]; in_file = fopen("mypipe", "r"); if (in_file == NULL) { printf("Error in fdopen.\n"); exit(1); } while ((count = fread(buf, 1, 80, in_file)) > 0) printf("received from pipe: %s\n", buf); fclose(in_file); } ...

by tdh2002 - Linux文档专区 - 2010-02-02 17:13:46 阅读(875) 回复(0)

弄Sql Server好半天了,sqlcmd通过named pipe就是连不上,具体查查它到底是干什么的。 在Win32下提供的进程间通信方式有以下几种: 剪贴板Clipboard:在16位时代常使用的方式,CWnd类中提供了支持。 COM/DCOM:通过COM系统的代理存根方式进行进程间数据交换,但只能够表现在对接口函数的调用时传送数据,通过DCOM可以在不同主机间传送数据。 Dynamic Data Exchange(DDE):在16位时代常使用的方式。 File ...

by zrl1986 - 网络技术文档中心 - 2008-04-18 17:06:55 阅读(898) 回复(0)

#include #include #include #include #include void signal_handler(); void sig_chld(int signo); void err_sys(const char *errmsg); int main(void) { int fd[2]; pid_t pid; char buf[BUFSIZ]; ssize_t n; signal_handler(); /* handler SIGCHLD */ if (pipe(fd) == -1) /* create pipe */ err_sys("pipe"); if ((pid = fork()) == ...

by fcloudf - Linux文档专区 - 2007-07-20 13:29:57 阅读(2380) 回复(0)

I wrote a perl script to caculate delta code lines of one branch named 'branch_dlc'. It depends on another perl script 'dlc'. My code is generally like: print "##################NEW METRICS######################\n"; system("dlc ..."); #here dlc script will print something to the term print"#################DELTA METRICS######################\n"; system("dlc ..."); #here dlc script will also print...

by Alex.Xia - Perl - 2006-04-12 22:44:33 阅读(1680) 回复(7)

各位老大,如果程序里pipe总是失败的话,需要调整哪个核心参数

by howard_sz - 其他UNIX - 2004-02-18 08:54:15 阅读(708) 回复(0)

在TOMCAT中 什么原因出现下面的Exception? StandardWrapperValve[default]: Servlet.service() for servlet default threw exception java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net.SocketOutputStream.write(SocketOutputStream.java:136) at org.apache.catalina.connector.Res...

by wubai - Java - 2003-11-13 17:41:57 阅读(1644) 回复(1)

本帖最后由 buzzerrookie 于 2012-03-05 23:28 编辑 最近在学操作系统,用到了linux,编程用到了fork和pipe,实现 ls -l | more 的功能。[code] #include #include #include int main() { pid_t pid[3]; int pipe_fd[2]; int status; char *prog1[3] = {"/bin/ls", "-l", NULL}; char *prog2[2] = {"/bin/more", NULL}; if(pipe(pipe_fd) < 0){ perror("pipe 1 failed"); } if...

by buzzerrookie - Linux环境编程 - 2012-03-05 23:06:43 阅读(1076) 回复(0)

Tomcat_Broken pipe 这个异常是由于以下几个原因造成。 1、客户端再发起请求后没有等服务器端相应完,点击了stop按钮,导致服务器端接收到取消请求。 通常情况下是不会有这么无聊的用户,出现这种情况可能是由于用户提交了请求,服务器端相应缓慢,比如业务逻辑有问题等原因,导致页面过了很久也没有刷新出来,用户就有可能取消或重新发起请求。 2、Tomcat服务器在接受用户请求的时候,有其自身的处理能力,线程、服务...

by so_brave - Java - 2012-01-03 22:05:31 阅读(1229) 回复(1)

/* pipe02.c */ #include unistd.h> #include stdio.h> #include stdlib.h> #include fcntl.h> #include limits.h> int main (void) { int fd[2]; int fdin; char read_pipe_buf[pipe_BUF]; char read_file_buf[pipe_BUF]; pid_t pid; int read_pipe_len; int read_file_len; /* creat a pipe */ if ((pipe(fd)) 0){ perror("pipe error"); exit(1); } ...

by RixinHuang - Linux文档专区 - 2010-01-03 22:50:00 阅读(583) 回复(0)