All of lore.kernel.org
 help / color / mirror / Atom feed
* /proc/${PID}/cmdline parsing
@ 2010-06-03  6:20 Mihamina Rakotomandimby
  2010-06-03  9:19 ` Joel Fernandes
  0 siblings, 1 reply; 6+ messages in thread
From: Mihamina Rakotomandimby @ 2010-06-03  6:20 UTC (permalink / raw)
  To: linux-newbie

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.

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?

Misaotra, Thanks, Merci.

-- 
       Architecte Informatique chez Blueline/Gulfsat:
    Administration Systeme, Recherche & Developpement
                                     +261 3456 000 19
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-06-05  9:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-03  6:20 /proc/${PID}/cmdline parsing Mihamina Rakotomandimby
2010-06-03  9:19 ` Joel Fernandes
2010-06-03  9:29   ` Mihamina Rakotomandimby
2010-06-03 12:38     ` Kristof Provost
2010-06-04 21:05       ` Cyril
2010-06-05  9:39       ` Joel Fernandes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.