Displaying 1 result from an estimated 1 matches for "my_cpu_affinitty".
2014 Feb 26
2
OT: Howto to capture taskset output command
...t;$cpu_affinity" == "$cpu_affinity_ok" ]; then
exit 0
else
taskset -p -c 2 `cat /tmp/test.pid`
fi
fi
This script doesn't works:
[root at cos01 bin]# taskset -p -c 27756
pid 27756's current affinity list: 2
Excecuting script:
[root at cos01 bin]# ./my_cpu_affinitty
+ cpu_affinity_ok=2
++ cat /tmp/test.pid
+ cpu_affinity='taskset -p -c 27756 | awk '\''{print }'\'''
+ '[' -f /tmp/test.pid ']'
+ '[' 'taskset -p -c 27756 | awk '\''{print }'\''' == 2 ']'
++ cat /tmp/tes...