[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: xargs - how to get it to execute input args as "the command"?
From: |
Bernhard Voelker |
Subject: |
Re: xargs - how to get it to execute input args as "the command"? |
Date: |
Sun, 05 Jan 2014 14:17:37 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
On 01/05/2014 12:09 PM, Linda A. Walsh wrote:
> James Youngman wrote:
>> You can use the "sh -c" trick to run the first argument as the command.
> Do you think the above case could be optimized? As I mentioned in my inital
> query, I wanted to avoid shell overhead on 80 thousand sub-jobs.
Sure, just take any tiny exec utility you like, e.g. 'nice -n0'.
> I.e. is there any reason xargs couldn't run the arguments directly [...]
... well, yes: it's called xARGS ... ;-)
Have a nice day,
Berny