pipe

java.net.SocketException: Broken pipe

谁说胖子不能爱 提交于 2020-01-03 18:04:36
问题 I am getting this for all the database connections from my app server.. This exception occured for couple of hours, then got fixed by itself. Something to do with network connection from the appserver? java.net.SocketException: Broken pipe com.inet.tds.SQLException: java.net.SocketException: Broken pipe java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92) at java.net

How do I pipe the output of an LS on remote server to the local filesystem via SFTP?

南笙酒味 提交于 2020-01-03 16:57:47
问题 I'm logged into a remote server via SFTP at the command line. The folder I'm in contains hundreds of thousands of files. I need to get a list of these files in a text file so I can access them programmatically, as none of the PHP SFTP clients are able to return such a large list of files. When I run an ls on the directory ( within the SFTP session ), it takes about 20 minutes for the file list to finally display. I don't have write access on this server, so I can't pipe the output to a file

Trouble with piping through sed

核能气质少年 提交于 2020-01-03 15:36:56
问题 I am having trouble piping through sed. Once I have piped output to sed, I cannot pipe the output of sed elsewhere. wget -r -nv http://127.0.0.1:3000/test.html Outputs: 2010-03-12 04:41:48 URL:http://127.0.0.1:3000/test.html [99/99] -> "127.0.0.1:3000/test.html" [1] 2010-03-12 04:41:48 URL:http://127.0.0.1:3000/robots.txt [83/83] -> "127.0.0.1:3000/robots.txt" [1] 2010-03-12 04:41:48 URL:http://127.0.0.1:3000/shop [22818/22818] -> "127.0.0.1:3000/shop.29" [1] I pipe the output through sed to

Pipe series of images from java application to ffmpeg subprocess

て烟熏妆下的殇ゞ 提交于 2020-01-03 13:07:29
问题 I am looking for a way to stream series of images (jpegs) from java application into FFMpeg STDIN pipe. FFMpeg should process these images and create a video file as an output. FFMpeg is executed as sub process of java application with the following command "ffmpeg.exe -i pipe:0 out.avi" When i run "ffmpeg -i input.jpg out.avi" command in the console, i get the "out.avi" file as expected But when i use the following tester code in my java application, i got an error. Code in Java application:

Pipe series of images from java application to ffmpeg subprocess

倖福魔咒の 提交于 2020-01-03 13:07:28
问题 I am looking for a way to stream series of images (jpegs) from java application into FFMpeg STDIN pipe. FFMpeg should process these images and create a video file as an output. FFMpeg is executed as sub process of java application with the following command "ffmpeg.exe -i pipe:0 out.avi" When i run "ffmpeg -i input.jpg out.avi" command in the console, i get the "out.avi" file as expected But when i use the following tester code in my java application, i got an error. Code in Java application:

Pipe between sockets

心已入冬 提交于 2020-01-03 10:20:17
问题 I've got a C++ server that acts as a mirror. What gets in gets out to a different socket. Right now, it reads the socket into a buffer and writes it into the other socket. I want to improve the throughput. I've read stuff about sendfile() and splice() , but it seems limited to "file-to-socket" transfers. Maybe a simple pipe() between sockets would work. What do you recommend? A portable solution would be perfect, but it's fine if it's Linux-only. 回答1: You can setup a named pipe in linux.

OSError: [Errno 11] Resource temporarily unavailable. What causes this?

本小妞迷上赌 提交于 2020-01-03 08:42:05
问题 Background I have two python processes that need to communicate with each other. The comminication is handled by a class named Pipe. I made a seperate class for this because most of the information that needs to be communicated comes in the form of dictionaries so Pipe implements a pretty simple protocol for doing this. Here is the Pipe constructor: def __init__(self,sPath): """ create the fifo. if it already exists just associate with it """ self.sPath = sPath if not os.path.exists(sPath):

OSError: [Errno 11] Resource temporarily unavailable. What causes this?

随声附和 提交于 2020-01-03 08:42:04
问题 Background I have two python processes that need to communicate with each other. The comminication is handled by a class named Pipe. I made a seperate class for this because most of the information that needs to be communicated comes in the form of dictionaries so Pipe implements a pretty simple protocol for doing this. Here is the Pipe constructor: def __init__(self,sPath): """ create the fifo. if it already exists just associate with it """ self.sPath = sPath if not os.path.exists(sPath):

Pipe operator %>% error with seq() function in R

拟墨画扇 提交于 2020-01-03 07:33:10
问题 I'm a big fan of the %>% operator from magrittr / dplyr and use it whenever possible. I'm having problems, however, using it to pipe to the seq() function. As a trivial example, imagine I have a variable x , and I want to create a sequence from x-5 to x+5 . I could do it like this: > x <- 10 > seq(from = x-5, to = x+5, by = 1) [1] 5 6 7 8 9 10 11 12 13 14 15 But for the life of me I can't get it to work properly with piping. To demonstrate, let me sneak up on the problem a little bit. Assume

How can 2 processes talk to each other without pipe()?

半城伤御伤魂 提交于 2020-01-03 05:52:05
问题 Given this code : #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/wait.h> #include <unistd.h> #define BUF_SIZE 256 int main() { int fd1[2]; int fd2[2]; ssize_t numRead = -1; // remark : working under the assumption that the messages are of equal length const char* messageOne = "Hello world , I'm child number 1\n"; const char* messageTwo = "Hello world , I'm child number 2\n"; const unsigned int commLen = strlen(messageOne) + 1; char buf[BUF_SIZE]; if (pipe(fd1) == -1)