> I open up a couple of tabs
So, you're basically thawing your lunch manually. Have you considered the "parallel" command?
So, you're basically thawing your lunch manually. Have you considered the "parallel" command?
for p in `seq 1 $(sysctl -n hw.ncpu)`; do yes > /dev/null & done
Alternatively you could run Boinc with a cancer research project or something - defrost your food AND help the world become a better place. parallel -- yes yes yes yes >/dev/null
If you've more processors than that, add on extra yesses.edit : hnlmorg beat me to it :)
parallel -- `sed -ne 's:^processor.*:yes:p' < /proc/cpuinfo`
on openbsd: parallel -- `perl -e 'printf("yes "x\`sysctl -n hw.ncpu\`)'`
don't try the latter in a shell script without being prepared to
debug tho.