1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/sh tar xvf stresscpu2.tgz cat> launch <<'EOT' #!/bin/sh case $OS_ARCH in x86_64) stresscpu2/stresscpu2_linux64 -t $@ | grep ERROR ;; i?86 | i86*) stresscpu2/stresscpu2_linux32 -t $@ | grep ERROR ;; esac EOT chmod +x launch