kill -9 "$PID" > /dev/null | kill -9 "$PID" > /dev/null | ||||
[ $? != "0" ] && echo "Process $PID doesn't exist." | [ $? != "0" ] && echo "Process $PID doesn't exist." | ||||
$CMD & | |||||
echo $CMD | sh & | |||||
PID=$! | PID=$! | ||||
# Print bell character | # Print bell character |
fi | fi | ||||
# If read returned success, run user's command | # If read returned success, run user's command | ||||
$1 | |||||
echo $1 | sh | |||||
done; | done; |