parallel
[Top][All Lists]
Advanced

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

Re: Parallel bug report


From: Ole Tange
Subject: Re: Parallel bug report
Date: Thu, 15 Sep 2016 08:11:24 +0200

On Mon, Sep 5, 2016 at 2:03 AM, Argent9660 <argent9660@protonmail.com> wrote:

> Parallel --version (error)
>
> The version number: 20160722
> The bugid: pid_parentpid_cmd for android missing

I need a command on android that will produce:

PID PPID CMD
1 0 /sbin/init
2 0 [kthreadd]
3 2 [ksoftirqd/0]
5 2 [kworker/0:0H]
7 2 [rcu_sched]
8 2 [rcu_bh]
9 2 [migration/0]
10 2 [watchdog/0]
11 2 [watchdog/1]

Where ppid = parent pid. On GNU/Linux this works (1 single line):

  ps -ef | perl -ane '1..1 and /^(.*)CO?MM?A?N?D/ and $s=length $1;
    s/^.{$s}/ /; print "@F[1,2] $_"'

BSD wants this instead:

  ps -o pid,ppid,command -ax

Can you test if that works on android, too?

If that works you can make this change:

@@ -4233,6 +4246,7 @@ sub which {
           my $bsd = q(ps -o pid,ppid,command -ax);
           %pid_parentpid_cmd =
           (
+      'android' => $sysv,
            'aix' => $sysv,
            'cygwin' => $sysv,
            'darwin' => $bsd,

(And can I ask what you are going to be using GNU Parallel on Android for?)


/Ole



reply via email to

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