in reply to How can I limit the number of Cores in multi-process programming
taskset -cp 3,4 1234 [download]
taskset -c 1,2 script.pl [download]