Re: /proc/<pid>/cmdline

Hans Lermen (lermen@elserv.ffm.fgan.de)
Thu, 11 Jul 1996 09:41:18 +0200 (MET DST)


On Wed, 10 Jul 1996, Mr A.M. wrote:

> A brief observation that on my system, cat of /proc/<pid>/cmdline gives
> the cmdline minus spaces between the arguments. Is this correct,
> is my system in need of an upgrade somewhere, or is it an error?

The 'spaces' between args are not missing, they are '\0'. Do a

# cat /proc/<pid>/cmdline | tr '\0' ' '

and the 'spaces' are visible ;-)

Hans
<lermen@fgan.de>