LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-25-2008, 05:47 AM   #1
natris
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
Identifying process at the other end of named pipe


Hello,
is there any way how to identify which process is connected to the other end of named pipe? I doubt it (fork comes into mind) but I want to be sure. The platforms I am interested in are Linux, BSD, Solaris and Darwin.
Thanks
 
Old 07-25-2008, 06:49 AM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,449

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
They are shown using "lsof" or "netstat -a", no?
 
Old 07-25-2008, 08:05 AM   #3
natris
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Original Poster
Rep: Reputation: 0
yes, there are such commands, at least under linux, but I'm talking about the case when you have file descriptor in C program and need to find out who is on the other side (for instance for security reasons). Windows have special function for this but their pipe interface is hack from top to bottom.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
execvp with a named pipe bahwilliams Programming 2 02-01-2007 03:16 PM
What is a named pipe ronzoid Linux - General 1 01-18-2006 04:30 PM
unlinking named pipe sahel Programming 1 01-12-2006 04:45 AM
unlinking named pipe sahel Programming 1 01-09-2006 10:36 PM
named pipe sahel Programming 1 01-09-2006 08:29 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration