Re: [lxc-devel] [PATCH] lxc-ps: use posix shell and awk instead of bash

2013-01-02 Thread Stéphane Graber
On 01/02/2013 01:00 PM, Stéphane Graber wrote: > On 12/26/2012 04:31 PM, Natanael Copa wrote: >> Use awk to parse the output pf 'ps' and the tasks files for the >> containers. >> >> Use awk fields to find PID column rather than assume that the PID field >> is exactly 5 chars wide and has a leading

Re: [lxc-devel] [PATCH] lxc-ps: use posix shell and awk instead of bash

2013-01-02 Thread Stéphane Graber
On 12/26/2012 04:31 PM, Natanael Copa wrote: > Use awk to parse the output pf 'ps' and the tasks files for the > containers. > > Use awk fields to find PID column rather than assume that the PID field > is exactly 5 chars wide and has a leading space ' PID'. This works as > long as the PID field i