Messages in this thread | ![/](/images/icornerl.gif) | | Date | Thu, 11 Jul 1996 01:09:51 -0500 | From | "James H. Cloos Jr." <> | Subject | Re: /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
| ![\](/images/icornerr.gif) |