parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pid_parentpid_cmd for MSWin32 missing


From: Tzafrir Poupko
Subject: Re: pid_parentpid_cmd for MSWin32 missing
Date: Sun, 5 Apr 2015 11:12:42 +0300

I had to change the command:

3451,3452c3451,3452
<           my $sysv = q( ps -ef | perl -ane '1..1 and /^(.*)CO?MM?A?N?D/ and $s=length $1;).
<               q(s/^.{$s}//; print "@F[1,2] $_"' );
---
>           my $sysv = q( ps -ef | perl -ane "1..1 and /^(.*)CO?MM?A?N?D/ and $s=length $1;).
>               q(s/^.{$s}//; print address@hidden,2] $_}" );

It is still not working, but now with other errors:


~/tmp/parallel/src $ Can't find string terminator "'" anywhere before EOF at -e line 1.
parallel: Warning: Input is read from the terminal.
parallel: Warning: Only experts do this on purpose. Press CTRL-D to exit.
The system cannot find the path specified.
The system cannot find the path specified.
'nproc' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
Can't find string terminator "'" anywhere before EOF at -e line 1.
'hinv' is not recognized as an internal or external command,
operable program or batch file.
'sizer' is not recognized as an internal or external command,
operable program or batch file.
parallel: Warning: Cannot figure out number of CPU cores. Using 1.

On Sun, Mar 29, 2015 at 9:24 PM, Ole Tange <address@hidden> wrote:
On Sun, Mar 29, 2015 at 7:54 AM, Tzafrir Poupko <address@hidden> wrote:
> On Sun, Mar 29, 2015 at 8:45 AM, Tzafrir Poupko <address@hidden> wrote:
>> On Wed, Mar 25, 2015 at 10:23 PM, Ole Tange <address@hidden> wrote:
>>> On Tue, Mar 24, 2015 at 2:39 PM, Tzafrir Poupko <address@hidden>
>>> wrote:
>>> > ~/Downloads/parallel-20150322/src $ ./parallel -version
>>> > parallel: This should not happen. You have found a bug.
>>> > Please contact <address@hidden> 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:
:
>> ~/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 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] $_"'

>From your output it seems this version will work.

That is now implemented in git version:

  git clone git://git.savannah.gnu.org/parallel.git

Please test and report back.


/Ole


reply via email to

[Prev in Thread] Current Thread [Next in Thread]