0

I've written Unix Pipes but I don't have the good result.

I'm wondering if it's possible to debugging Unix pipe in C langage with gdb. If no, do you know a method to do that ?

thanks in advance.

0

1 Answer 1

2

Use netcat with the -U switch. You will be able to create a listen/sender, or sit in between.

Sign up to request clarification or add additional context in comments.

2 Comments

When I run the C program with pipes, I open a console and type netcat -U and it will show the pipe's content ? i only know netcat for network.
For example, nc -lkU /tmp/mysock would create a local socket at /tmp/mysock and output what it receives to stdout

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.