From 3e9fff43649ff5a5f350d2c1895f8af6250b7f12 Mon Sep 17 00:00:00 2001 From: Kaiwan N Billimoria Date: Wed, 14 Feb 2024 07:57:41 +0530 Subject: [PATCH] check for yes --- ch10/concurrent_exercise/exercise_cpu | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ch10/concurrent_exercise/exercise_cpu b/ch10/concurrent_exercise/exercise_cpu index 8244e7d..13447c7 100755 --- a/ch10/concurrent_exercise/exercise_cpu +++ b/ch10/concurrent_exercise/exercise_cpu @@ -11,4 +11,8 @@ which taskset >/dev/null || { echo "Pl first install the taskset utility" exit 1 } +which yes >/dev/null || { + echo "Pl first install the 'yes' utility" + exit 1 +} taskset -c $1 yes > /dev/null