Marco Ippolito <[email protected]> wrote:
> How can I `echo', in `bash', the core # the current script is running on?
This will probably do it for you
awk '{print $39}' /proc/$$/stat
See proc(5) for details, including the 39. Please also note that unless
you've set the task affinity (see taskset(1) for details) the process
can - and will - be reassigned different cores during its lifetime.
Chris
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]