lkml.org 
[lkml]   [1996]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: /proc/<pid>/cmdline
Alex> A brief observation that on my system, cat of
Alex> /proc/<pid>/cmdline gives the cmdline minus spaces between the
Alex> arguments. Is this correct, is my system in need of an upgrade
Alex> somewhere, or is it an error?

The arguments are each null terminated. Try piping cat(1)'s STDOUT to
`tr \\0 \ ' to get spaces, or `tr \\0 \\n' for newlines after each arg.

-JimC
--
James H. Cloos, Jr. <URL:http://www.jhcloos.com/~cloos/>
cloos@jhcloos.com Work: cloos@io.com
LPF,Usenix,SAGE,ISOC,ACLU





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