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
The problem appeared to be very simple, but I can not find any solution after a day of googling and looking at stackoverflow.
I\'m using pipes and I got a kind of deadlock on WriteFile/ReadFile. Here is my code : hProbePipeRet = CreateNamedPipe(
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
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
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
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
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
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
for example, i want to get an array of 4 ints from child to parent. parent calls read(apipe, buf, sizeof(int)*4);