pipe
C use select and read from pipe
I\'ve got a program that I\'m working on and I use select to choose from the pipes to read. The problem is that I\'m using if(FD_ISSET(pfd[i][0], &read_set)) and it fails the verification because[详细]
2023-04-13 04:42 分类:问答PyQt4: Interrupted system call while calling commands.getoutput() in timer
The problem appeared to be very simple, but I can not find any solution after a day of googling and looking at stackoverflow.[详细]
2023-04-13 03:12 分类:问答Deadlock with WriteFile/ReadFile
I\'m using pipes and I got a kind of deadlock on WriteFile/ReadFile. Here is my code : hProbePipeRet = CreateNamedPipe([详细]
2023-04-12 18:49 分类:问答Pipe ls output to get path of all directories
I want to list all directories ls -d * in the current directory and list out all their full paths. I know I need to pipe the output to something, but just not sure what. I don\'t know if I can pipe th[详细]
2023-04-12 15:18 分类:问答Calling Unix command from Java
How do I execute the Unix grep program to search for patt开发者_Go百科erns in a set of files by calling that command from inside a Java program?You can use Runtime.exec[详细]
2023-04-12 09:40 分类:问答Error caused when forking
I have the following code which forks two new processes to take the contents of the stdout of one and saves it to a file. It runs just fine and saves the file,but after it returns the following line i[详细]
2023-04-12 00:00 分类:问答using a python list as input for linux command that uses stdin as input
I am using python scripts to load data to a database bulk loader. The input to the loader is stdin. I have been unable to get the correct syntax to call the unix based bulk loader passing the conten[详细]
2023-04-11 21:34 分类:问答Pipe between sockets
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 throu[详细]
2023-04-11 20:54 分类:问答reading from a pipe in c
Scenario: Say I have 8 files that I want to sort all the data of numbers it has in order from least to greatest.Only leaf proceses can sort all the numbers that a file contains. These leaf processes m[详细]
2023-04-10 13:20 分类:问答When using unix pipes (in C) does the OS balance every write() with a read() or does it balance the total number of bytes?
for example, i want to get an array of 4 ints from child to parent. parent calls read(apipe, buf, sizeof(int)*4);[详细]
2023-04-10 08:55 分类:问答