I think I didn't understand what you meant. this works for me to get what you need: ps -ef | awk '{print $2,$3,$6}' or ps -ef | awk '{$1=$4=$5="";print $0}'
On Sun, Mar 29, 2015 at 8:45 AM, Tzafrir Poupko <tzaf...@ceemple.com> wrote: > Is this what you need? > > ~/Downloads/parallel-20150322/src $ ps > PID PPID PGID WINPID TTY UID STIME COMMAND > 5352 1 5352 5352 con 500 08:28:40 /msys/bin/bash > 6844 5352 6844 1136 con 500 08:32:51 /msys/bin/ps > > On Wed, Mar 25, 2015 at 10:23 PM, Ole Tange <ta...@gnu.org> wrote: > >> On Tue, Mar 24, 2015 at 2:39 PM, Tzafrir Poupko <tzaf...@ceemple.com> >> wrote: >> > Hi, >> > I'm getting the below error, using msys on windows 7 >> > >> > ~/Downloads/parallel-20150322/src $ ./parallel -version >> > parallel: This should not happen. You have found a bug. >> > Please contact <parallel@gnu.org> and include: >> > * The version number: 20150322 >> > * The bugid: pid_parentpid_cmd for MSWin32 missing >> >> You are likely the first to run version 20150322 under msys. I need a >> command that spits out 3 columns: >> >> PID ParentPID COMMAND >> >> On BSD you can use: >> >> ps -o pid,ppid,command -ax >> >> On SysV you can use: >> >> ps -ef | perl -ane '1..1 and /^(.*)CO?MM?A?N?D/ and $s=length >> $1;s/^.{$s}//; print "@F[1,2] $_"' >> >> On Cygwin you can use: >> >> perl -ne 'close STDERR; /Name/ and print"\n"; >> /(Name|Pid|Ppid|State):\s+(\S+)/ and print "$2\t";' /proc/*/status | >> awk '{print $2,$3,$1}' >> >> Most likely one of those will work on msys. Can you test those and get >> back? >> >> >> /Ole >> >> PS: If you have not already donated to protect the GPL, you can still >> make it: >> https://sfconservancy.org/linux-compliance/vmware-lawsuit-faq.html >> > >