Follow-up Comment #3, bug #29512 (project findutils):
Is this the same thing as you are asking for:
"Set some environment variable, so that it has a different value in each
child process."
If yes, why not use the PID of the child?
Even if we use a sequence starting at 1 and put the value in $XARGS_CPU,
xargs cannot guarantee for example that a process with XARGS_CPU=8 can't
usefully run locally, since the earlier processes with XARGS_CPU=2 up to
XARGS_CPU=7 may already have finished. Hence knowing that $XARGS_CPU > (the
number of CPUs) doesn't seem helpful.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?29512>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/