ps -u username | grep -v "PID" | awk '{print $1}' | xargs -I {} sudo nohup renice -n 19 -p {} &>/dev/null &
举例:
ps -u xu | grep -v "PID" | awk '{print $1}' | xargs -I {} nohup -p {} &>/dev/null &
ps -u username | grep -v "PID" | awk '{print $1}' | xargs -I {} sudo nohup renice -n 19 -p {} &>/dev/null &
举例:
ps -u xu | grep -v "PID" | awk '{print $1}' | xargs -I {} nohup -p {} &>/dev/null &