lkml.org 
[lkml]   [1996]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: /proc/<pid>/cmdline
On Wed, 10 Jul 1996, Mr A.M. Kruczkowski 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>




\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.079 / U:0.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site