[lkml]   [1996]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
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 ;-)


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