Re: Separate taskset arguments from the command arguments

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

 



Akshay Adiga <akshay.adiga@xxxxxxxxx>
writes:

> I want to run a command which looks something like this :
>
> taskset -c 10 ycsb -p "redis_host=1234"
>
> The actual command is :
>
> ycsb -p "redis_host=1234"
>
> But argument -p "redis_host=1234" is taken by taskset as it argument
> and throws an error : Failed to set pid 0's affinity:
>
> -p "redis_host=1234" is an argument to ycsb command. shell/tasket
> misunderstands that and takes it as an argument for taskset.
>
> Is there a work around for this?

Normally, such problem are solved by inserting `--` before your command;
however, taskset have somewhat unusual parsing of arguments (-c is not
an "option with argument", but the flag), so it will be

  taskset -c -- 10 ycsb -p "redis_host=1234"

--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux