Hello,
Eric said:
how can I identify what belongs to these above ?
The program lsof is pretty useful....
You can use fuser .fam_socket (It is probably more efficient since lsof read all /proc
unless you know the pid of the process which created that file).
Eric said:
what is 's' in 'ls' listing, socket ?
srwx------ 1 root nobody 0 Oct 10 2003 .fam_socket
I think its a unix domain socket.
Yes it is; You can compile and run the simple following program:
#include <sys/un.h> #include <sys/socket.h> #include <sys/types.h>
int main()
{
unsigned int s,s2;
struct sockaddr_un local,remote;
int len;s = socket(AF_UNIX,SOCK_STREAM,0);
local.sun_family = AF_UNIX; strcpy(local.sun_path,"/tmp/rrSsocket"); len = strlen(local.sun_path) + sizeof(local.sun_family); bind(s,(struct sockaddr*)&local,len); getchar(); }
and you can see that ls -al /tmp/rrSsocket shows the "s" bit.
Regards, Amir
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search! http://search.msn.com/
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
