Displaying 1 result from an estimated 1 matches for "cos01".
Did you mean:
cms01
2014 Feb 26
2
OT: Howto to capture taskset output command
..."taskset -p -c `cat /tmp/test.pid` | awk '{print $6}'"
if [ -f /tmp/test.pid ]; then
if [ "$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 ']&...