lkml.org 
[lkml]   [1996]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject/proc/<pid>/cmdline
A. M. Kruczkowski writes:
> 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?
>
> Alex

There is something between the arguments:

$ cat /proc/self/cmdline | od -c
0000000 c a t \0 / p r o c / s e l f / c
0000020 m d l i n e
0000026

You would generally have to use a tool like od to see the nulls ('\0')
between the arguments.


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