Member Avatar
So I've always toyed around with C# code with the idea of gaming. Lately I've been dabbling in communication. Initially I tried sockets and TcpClient and that was hit and miss. So I decided to give pipes a go. Frankly I dont have much of a preference of one of …
by nunntb473 in Software Development ()
Member Avatar
Alright so I am getting a weird problem with the following code ... The last line of code ... is the line causing the problem, if it is commented out the code runs, if it is not commented out I get a core dump, can anyone see what i am …
by kyle.mace.35 in Software Development ()
Member Avatar
Hello. I need to set up some pipes for a homework assignment as part of a bigger project. The issue I'm having is that the array (args) I'm using to populate the pipe arguments keeps segfaulting and I don't know why. Everything has been malloced beforehand and the faults only …
by greatman05 in Software Development ()
Member Avatar
Ok so am writing a program that simulates a computer system.The cpu and memory will be forked making memory a child process and cpu athe parent and i will be using pipes to let them exchange informatino. I am really lost tough on what to do next, i have loaded …
by nah094020 in Software Development ()
Member Avatar
Hey, I have some command, I'll call it "command". I need to do this: yes | command but without a pipe, there is a reason for this, because for the specific use, pipe before the command is not allowed, that's not the point. Is there an alternative I can use …
by liran in Linux and Unix ()
Member Avatar
Hi, i am not sure whether this topic would go under this category, thought this would be more suitable what are the famous software architectures? i have to do an research on this an present, I am new to this topic appreciate a reply thanks
by anisha.silva in Computer Science ()
Member Avatar
hi, does any one know about the pipe & filter architecture implemntation in C# have a question in that.
by anisha.silva in Software Development ()
Member Avatar
HI, I want to implemtna a file & filter architecture for reading data from a txt file and then removing the non alpahbatical words in it and display the 20 words in alphabatical order in the Consol window. how do i do it. appreciate a reply, thanks
by anisha.silva in Software Development ()
Member Avatar
Hi. I have a class called step and in it i have a method when i trying creating a thread i did it as below give me a error msg "Error 1 The best overloaded method match for 'System.Threading.Thread.Thread(System.Threading.ParameterizedThreadStart)' has some invalid arguments \Program.cs 25 25 PipeFilter " and "Error …
by anisha.silva in Software Development ()
Member Avatar
HI, How can I read from a txt file using threads in C#, regards
by anisha.silva in Software Development ()
Member Avatar
In a client server program ... generally when the server goes down the client on executing the send command 2 times returns a SIGPIPE signal . I want to know y this happens. The client must recieve sigpipe immediately when it sends a message after the socket connection is broken …
by srinivas88 in Software Development ()
Member Avatar
Hi, I was wanting to write a (ba)sh script to allow me to wait for the detection of a new USB device, and when that device is detected, execute some commands. The scripts are intending to be working on the principle that whenever I plug in a usb device a …
by Sudo Bash in Software Development ()
Member Avatar
after tokenising my string i am the tokens to the method below and counting the tokens. if token number is one, that means i have one command only and pass it from execvp.. if i have a second token then pass that token from the second execvp.. This gives me …
by mullan123 in Software Development ()
Member Avatar
Hi, I made a program that lists all possible anagrams of a word.Now I'd like to include anagrams of subsets of letters in the word.I have the code for making the subsets also now.But i do not want merge them as a single code.So I'd like to know if there …
by IndianaRonaldo -3 in Software Development ()
Member Avatar
I am trying to write some tool for MSDOS environment but it doesn't work as expected. I want to get the tool to read from some commandline pipe, like C:\> type a.txt|testpipe where testpipe.exe is the compiled program. The problem: After going through the piped contents, it does not stop …
by winonus in Software Development ()
Member Avatar
Hello there, I'm new to C programming and am following a course in C. I've got an example code for piping. It's not a very hard code to understand. It goes like this: include <stdio.h> include <unistd.h> include <stdlib.h> include <string.h> define READ_END 0 define WRITE_END 1 const char banner …
by JDevelop in Software Development ()
Member Avatar
What is the best way to terminate ReadFile once the data is done being read? I just sits there an hangs! I'm kinda new to Python so be easy on me! :) The other way i was able to read info from my pipe was blah = open(pipe) then blah.read() …
by bmoe in Software Development ()
Member Avatar
Hello, I want to redirect stdin and stdout of "cat" program to my program. For example if I type "cat" in terminal, and enter input and press enter it outputs the same string I entered. In my c program I am trying to use pipes and dup. I cannot figure …
by slatk3y in Software Development ()
Member Avatar
Hi, I have some questions about multi pipe. First of all, What I should do is making 6 child processes and each of child process reduces a global value (by 1) which is saved in malloc concurrently until the value reaches 0. All I could find from google was about …
by 9tontruck in Software Development ()
Member Avatar
I am trying to pipe an email to PHP. I currently have set up a forwarder in cPanel that does the following : |/home/username/public_html/mailscripttest.php mailscripttest.php has permissions 755 and contains: !/usr/bin/php âq <? /* Read the message from STDIN / $fd = fopen("php://stdin", "r"); $email = ""; // This will …
by nquinlan in Web Development ()
Member Avatar
Hi, Iâm trying to use the following code in C++ on Mac OS X Snow Leopard to get the output of an external program through a pipe. FILE * al = popen("program program.cfg", "r"); However, no data gets printed out. I suspect the problem lies in the fact that the …
by venyz in Software Development ()
Member Avatar
A program that handles either piped input (command/prog | your_prog) or file redirected (your_prog < file_name) input. Determine whether such input exists before issuing a stdin read so that the program does not go into a "waiting for input" state. Written in/for the XP environment.
by banders7 1 in Software Development ()