#! /bin/sh if [ -z "$*" ];then echo >&2 "No PID" elif [ "$1" = "-p" ];then shift exec chrt -i -p 0 "$@" else exec chrt -i 0 "$@" fi