Search Results

Search: Posts Made By: nimesh
Forum: Programming 11-18-2011
13,870
Posted By nimesh
I am sorry, I meant to write PIPE_BUF instead of...
I am sorry, I meant to write PIPE_BUF instead of BUF_PIPE. and PIPE_BUF is in limits.h
Anyway, I am still not getting it. Here is all my scratch work

This is progA.c. progA gets an integer from...
Forum: Programming 11-18-2011
13,870
Posted By nimesh
Thank you for the help. But i have another issue...
Thank you for the help. But i have another issue now.

I open a FIFO to write
mkfifo ("pipe1", 0777);
int writefd = open ("pipe1", O_WRONLY);

now how do I write argv[1] to pipe1?
I did: ...
Forum: Programming 11-17-2011
1,850
Posted By nimesh
print all nonempty pipe
I am trying to write a shell script for Linux to print the names of all non empty pipes in the current directory?

any help
Forum: Programming 11-17-2011
13,870
Posted By nimesh
processs and pipe
how to read and write on pipes to communicate with each other?
Forum: Programming 11-16-2011
8,003
Posted By nimesh
Thanks guys, exactly what I wanted!
Thanks guys, exactly what I wanted!
Forum: Programming 11-15-2011
8,003
Posted By nimesh
unnamed pipes and threads
Hi!
I am writing a C program that will create a child, child will create a thread and the thread will send a message to a unnamed pipe and will print the message before exiting.

here is my work:...
Forum: Programming 10-24-2011
9,645
Posted By nimesh
system is LINUX. is there a way to use 'ps'...
system is LINUX.

is there a way to use 'ps' command to get the ancestor name and pid?
Forum: Programming 10-24-2011
9,645
Posted By nimesh
I am using UNIX (putty).
I am using UNIX (putty).
Forum: Programming 10-24-2011
9,645
Posted By nimesh
Print ancestor list in c (name and PID)
I am trying to write a C program that prints its ancestor name and PID

For example:
Lets say my program name is prog1 then the output should be
prog1 with PID: 2345
bash with PID: 4567
.......
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 03:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy