lkml.org 
[lkml]   [2022]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [oss-security] [patch] proc.5: tell how to parse /proc/*/stat correctly
Date
Dominique Martinet writes:

> But, really, I just don't see how this can practically be said to be parsable...

In its current form it never will be. The solution is to place
this variable-length field last. Then you can "cut -d ' ' -f 51-"
to get the command+args part (assuming I counted all those fields
correctly ...)

Of course, this breaks backwards compatability.

--lyndon

\
 
 \ /
  Last update: 2023-03-26 23:21    [W:1.321 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site