Re: /proc/${PID}/cmdline parsing
Joel Fernandes <[email protected]>
| Newsgroups | gmane.linux.newbie |
|---|---|
| Message-ID | <20100603091935.GA15493@joel-laptop> |
On Thu, Jun 03, 2010 at 09:20:25AM +0300, Mihamina Rakotomandimby wrote:
> Manao ahoana, Hello, Bonjour,
>
> If I launch a
> $ watch find / -type f -name 'toto'
> (it's a useless command just for the example)
> and then I get the PID of this.
PID of what? watch or find?
>
> When I
> $ cat /proc/${PID}/cmdline
> watchfind/-typef-nametoto
>
> Yes, it's the command line, but I would like to parse it, in order to
> display the launched executable + its arguments.
>
> How to parse it?
>
Could you be a bit more clear with your question?
take care,
Joel
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs