HT201464: Use Activity Monitor on your Mac

Learn about Use Activity Monitor on your Mac
shiv_blr

Q: How can I check if a process creating a named pipe or not at run time using activity monitor?

I have a process which at run time should create a named pipe. Some time it does not seams to create this pipe and exited. I do not have its source code hence cannot confirm by debugging it.

Does activity monitor help me to find if a process has created a named pipe or not? if so how?

 

Any help is appreciated.

 

Thanks

Shiv

iMac, OS X Mavericks (10.9.5)

Posted on Sep 7, 2015 1:10 AM

Close

Q: How can I check if a process creating a named pipe or not at run time using activity monitor?

  • All replies
  • Helpful answers

  • by Linc Davis,Helpful

    Linc Davis Linc Davis Sep 7, 2015 7:22 PM in response to shiv_blr
    Level 10 (207,931 points)
    Applications
    Sep 7, 2015 7:22 PM in response to shiv_blr

    A named pipe is not a process. It's an object in the file system. If you know where it's supposed to be, you can look for it in the Finder. Otherwise, you'd have to search for it in the shell by a suitable invocation of find(1).

  • by shiv_blr,

    shiv_blr shiv_blr Sep 7, 2015 7:25 PM in response to Linc Davis
    Level 1 (0 points)
    Sep 7, 2015 7:25 PM in response to Linc Davis

    Thanks Linc. but if the pipe is created at runtime and then deleted by the process when process exited it is difficult to find it in finder. specially when the pipe name is random and based on process ID.

     

    Is there a tool on MAC similar to Process monitor on windows which logs all activities on a running process for further analysis.

     

    Anyways thanks a lot. :-)

  • by Linc Davis,

    Linc Davis Linc Davis Sep 7, 2015 7:38 PM in response to shiv_blr
    Level 10 (207,931 points)
    Applications
    Sep 7, 2015 7:38 PM in response to shiv_blr

    There is no easy way to do what you want. You're asking how to debug someone else's app. See the man pages for fs_usage(1) and opensnoop(1m).

  • by Drew Reece,

    Drew Reece Drew Reece Sep 7, 2015 7:53 PM in response to shiv_blr
    Level 5 (7,490 points)
    Notebooks
    Sep 7, 2015 7:53 PM in response to shiv_blr

    Is it listed under the main process in Activity Monitor? Get info on the process (double click it) & open files & ports should be listed.