On Wed, Feb 26, 2014 at 6:57 AM, C. L. Martinez 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
On Wed, Feb 26, 2014 at 12:40 PM, Steven Tardy wrote:
> On Wed, Feb 26, 2014 at 6:57 AM, C. L. Martinez wrote:
>
>> if [ "$cpu_affinity" == "$cpu_affinity_ok" ]; then
>>
>
> are you comparing strings or integers?
> # man test
>STRING1 = STRING2
> the strings are equal
>
> On Feb 26, 2014, at 8:28 AM, "C. L. Martinez" wrote:
>
>> On Wed, Feb 26, 2014 at 12:40 PM, Steven Tardy wrote:
>> On Wed, Feb 26, 2014 at 6:57 AM, C. L. Martinez wrote:
>>
>>>if [ "$cpu_affinity" == "$cpu_affinity_ok" ]; then
>>
>> are you comparing strings or integers?
>> # man tes
On Wed, Feb 26, 2014 at 1:40 PM, sjt5atra wrote:
>
>
>
>
>> On Feb 26, 2014, at 8:28 AM, "C. L. Martinez" wrote:
>>
>>> On Wed, Feb 26, 2014 at 12:40 PM, Steven Tardy wrote:
>>> On Wed, Feb 26, 2014 at 6:57 AM, C. L. Martinez wrote:
>>>
if [ "$cpu_affinity" == "$cpu_affinity_ok" ]; then
From: C. L. Martinez
> I am trying to set processor affinity for a specific process using a
> shell script without result. Script:
>
> #!/bin/sh -x
>
> cpu_affinity_ok="2"
> cpu_affinity="taskset -p -c `cat /tmp/test.pid` | awk '{print
> $6}'"
>
> if [ -f /tmp/test.pid ]; then
> if [ "$cp
On 26/02/2014 13:45, C. L. Martinez wrote:
> On Wed, Feb 26, 2014 at 1:40 PM, sjt5atra wrote:
>>
>>
>>
>>
>>> On Feb 26, 2014, at 8:28 AM, "C. L. Martinez" wrote:
>>>
On Wed, Feb 26, 2014 at 12:40 PM, Steven Tardy wrote:
On Wed, Feb 26, 2014 at 6:57 AM, C. L. Martinez
wrote:
On Wed, Feb 26, 2014 at 1:54 PM, Tris Hoar wrote:
> On 26/02/2014 13:45, C. L. Martinez wrote:
>> On Wed, Feb 26, 2014 at 1:40 PM, sjt5atra wrote:
>>>
>>>
>>>
>>>
On Feb 26, 2014, at 8:28 AM, "C. L. Martinez" wrote:
> On Wed, Feb 26, 2014 at 12:40 PM, Steven Tardy wrote:
> On
7 matches
Mail list logo