Re: OT: Howto to capture taskset output command

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



On Wed, Feb 26, 2014 at 12:40 PM, Steven Tardy <sjt5atra@xxxxxxxxx> wrote:
> On Wed, Feb 26, 2014 at 6:57 AM, C. L. Martinez <carlopmart@xxxxxxxxx>wrote:
>
>>     if [ "$cpu_affinity" == "$cpu_affinity_ok" ]; then
>>
>
> are you comparing strings or integers?
> # man test
>        STRING1 = STRING2
>               the strings are equal
>        INTEGER1 -eq INTEGER2
>               INTEGER1 is equal to INTEGER2

Thanks Steven, but it doesn't works also ..

Using if [ "$cpu_affinity" -eq "$cpu_affinity_ok" ]; then
./cpu_affinitty: line 7: [: taskset -p -c 27756 | awk '{ print  }':
integer expression expected
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux