Okay, I'm back. I tried something different. But it's not performing properly...
//Uses two pipes to establish 2-way communication
#include <stdio.h>
#include <string.h>
#include...
Type: Posts; User: DamienCurr
Okay, I'm back. I tried something different. But it's not performing properly...
//Uses two pipes to establish 2-way communication
#include <stdio.h>
#include <string.h>
#include...
Good afternoon!
Taking the following into account:
/**************************************************************
* p2cComm.c
*
Evening!
What I mean is that the parent process executes "ps -ef" and sends it down the pipe to the child process which uses it as input for grep. I have an example of the unnamed pipe which works...
Troubles continue...It does not appear as if the pipe is working. The first part, "ps -ef" is working but not the second part.
Ideas as to why?
#include <stdio.h>
#include <stdlib.h>
Good evening,
I am trying to use a named pipe to implement communication between two UNIX commands. It does not compile properly. The error message in Dev-C++ is "syntax error before numeric...
My thanks to everyone who posted a reply! All were excellent suggestions. I now have a better understanding of the process.
This is what I went with:
else if (option == 4)
{
...
Good evening!
I have a C program that I have been working on for most of the week. I have gotten around 75% of it working. I'm stuck on the last part.
The question:
How do you read a file...