Re: Find argument passed to running process
Re: Find argument passed to running process
- Subject: Re: Find argument passed to running process
- From: Nico Schmidt <email@hidden>
- Date: Thu, 3 Sep 2009 12:14:42 +0200
On 03.09.2009, at 05:11, Michael Smith wrote:
On Sep 2, 2009, at 12:04 PM, email@hidden wrote:
Thanks all. My internet connection was down so I could not reply.
Solution
suggested by Terry using popen() and read argument is right, but I
want to
implement without using shell or system() or any other script.
Why do you think you want to do this?
Please understand that when you are responding to Terry, you are
talking to one of the small number of individuals tasked with
maintaining this particular interface. His word on correct usage is
as close to final as anything you're going to get.
Please also understand that the information returned by ps for a
process' arguments is not guaranteed to be correct or parseable. If
you require a contract with the calling task, you must arrange for
the calling task to save the argument information somewhere else.
Nico misses the point when complaining that the output is not
reliable; it is not meant to be a communcation channel, it is meant
to be informative.
I didn't mean to complain :). This was meant as an argument for an
interface that *is* reliable.
On the subject of procfs; folks, you are trying to solve the wrong
problem. Adding another access method absent a sensible schema does
nothing to address the basic problem.
How would you address the basic problem?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden